-g

This option enables the generation of debug tables for the current compilation.

The compiler produces the same code regardless of whether -g is used. The only difference is the existence of debug tables.

Using -g does not affect optimization settings.

Show/hideDefault

By default, using the -g option alone is equivalent to:

-g --dwarf3 --debug_macros

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0491G
Non-ConfidentialID021412