3.4.7 G: Produce Debugging Information Option

The -gformat option instructs the assembler to produce additional information, which can be used by hardware tools to debug your program.

The support formats are tabulated below.

Table 3-2. Supported Debugging File Formats
FormatDebugging file format
-gcoffCOFF
-gdwarf-3ELF/DWARF release 3.
-ginhx32Intel HEX with extended linear address records, allowing use of addresses beyond 64 KB.
-ginhx032INHX32 with initialization of upper address to zero.

By default, the assembler produces DWARF release 3 files.