7.72 -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.

Default

By default, using the -g option alone is equivalent to:
-g --dwarf3 --debug_macros
Related reference
7.33 --debug, --no_debug
7.34 --debug_macros, --no_debug_macros
7.52 --dwarf2
7.53 --dwarf3
7.120 -Onum
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.