IDE

Commonly used GCC Compiler Flags

GNU Compiler Collection (GCC) is an optimizing compiler produced by the GNU Project supporting various programming languages, hardware architectures and operating systems. It includes front ends for C, C++, Objective-C, Fortran, Ada and Go. This article discuss about commonly encountered GCC compiler flags. Disable the unused variable warningsUse flag -Wno-unused-variable [...]

2022-02-22T18:25:20+05:30Categories: IDE|Tags: , |

Keyboard Shortcut | Xcode

Stepping over the debugger to cursor locationRight-click on the line and select "Continue to Here".Set and unset the breakpoint to the line where your cursor is flashingCommand -\Right click for those with a one button mouseControl + clickFind matching brace, bracket or parenthesisDouble tap on one of the nested parenthesis, [...]

2022-01-14T11:42:50+05:30Categories: IDE|Tags: |

Eclipse CDT: Cannot find a source file while debugging

Using Eclipse with CDT for C++ development on Windows. Sometime Eclipse couldn't find the Source during debugging because of the missing mapping to the (cygwin-) drive if the workspaces is residing in root other than CYGWIN. To resolve the mapping, If  Projects are under C:\Projects, so add mapping in Eclipse [...]

2022-01-14T11:42:20+05:30Categories: IDE|Tags: |

Optimization level | Xcode

Introduction Optimization level defines how code are compiled and linked. For code debugging this should be disabled other wise breakpoint will not behave properly. Xcode will complain about the same by printing message "App Name was compiled with optimization - stepping may behave oddly; variables may not be available." on [...]

2022-01-14T11:41:44+05:30Categories: IDE|Tags: |
Go to Top