SPRU514Z July 2001 – October 2023 SM320F28335-EP
The following options are used to select symbolic debugging or profiling:
--symdebug:dwarf | (Default) Generates directives that are used by the C/C++ source-level debugger and enables assembly source debugging in the assembler. The --symdebug:dwarf option's short form is -g. See Section 3.12. For details on the DWARF format, see The DWARF Debugging Standard. |
--symdebug:dwarf_ version={2|3|4} | Specifies the DWARF debugging format version (2, 3, or 4) to be generated when --symdebug:dwarf (the default) is specified. By default, the compiler generates DWARF version 3 debug information for the COFF ABI and version 4 for EABI. DWARF versions 2, 3, and 4 may be intermixed safely. When DWARF 4 is used, type information is placed in the .debug_types section. At link time, duplicate type information is removed. This method of type merging is superior to DWARF 2 or 3 and results in a smaller executable. In addition, DWARF 4 reduces the size of intermediate object files in comparison to DWARF 3. For more about TI extensions to the DWARF language, see The Impact of DWARF on TI Object Files (SPRAAB5). |
--symdebug:none | Disables all symbolic debugging output. This option is not recommended; it prevents debugging and most performance analysis capabilities. |
--symdebug:profile_coff | Adds the necessary debug
directives to the object file which are needed by
the profiler to allow function level profiling
with minimal impact on optimization (when used).
This option does not hinder optimization. You can set breakpoints and profile on function-level boundaries in Code Composer Studio, but you cannot single-step through code as with full debug ability. (COFF only; not supported for EABI.) |
--symdebug:skeletal | Deprecated. Has no effect. |