r2 - 13 Mar 2008 - 16:23:43 - ChenDingYou are here: TWiki >  Main Web > TWikiUsers > ChenDing > CS255Spring08 > ProjectHome > DebugCC1
Actually, gcc you called when you do compilation is just a driver for real compiler cc1, assembler as and linker collect2. Use option -v you can see the exact command sequence. For direct debugging you should run gdb cc1. Refer to gdb documentation on how to set break points, print the current call stack, and examine variable values. You can modify variable values and call program functions within the debugger, making it a good test environment for trying your coding ideas.

Gcc has helper functions for examining the gimple tree. See the Q&A on examining an gimple node.

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
URCS Wiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback