Day: August 16, 2008

Dicas sobre GCC

Estas dicas foram apresentadas por Gene Sally da Timesys durante a Conferencia de Linux Embarcado (ELC):

* gcc -### – show what GCC would have executed
* gcc -v – show what GCC is executing
* gcc -g x.c -o x; objdump -S x – show the C and generated assembly code
* gcc -E -dM – </dev/null – show all predefined GCC macros
* gcc -C -E – show pre-processor output, but leave comments intact
* gcc -M – show all include file dependencies (for use in Makefiles)
* gcc -MM – like above, but ignore system include files