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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s