8.89 -g

Enables the generation of debug tables.

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.


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

-g --dwarf3 --debug_macros
Related reference
8.43 --debug, --no_debug
8.44 --debug_macros, --no_debug_macros
8.66 --dwarf2
8.67 --dwarf3
8.138 -Onum
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.