Output, Debug, and Precompiled Header (PCH) Options
- bintext
Places a text string into the object file (.obj) being generated by the compiler.
- c
Prevents linking.
- debug (Linux* OS and OS X*)
Enables or disables generation of debugging information.
- debug (Windows* OS)
Enables or disables generation of debugging information.
- debug-parameters
Tells the compiler to generate debug information for PARAMETERs used in a program.
- exe
Specifies the name for a built program or dynamic-link library.
- Fa
Specifies that an assembly listing file should be generated.
- FA
Specifies the contents of an assembly listing file.
- fcode-asm
Produces an assembly listing with machine code annotations.
- Fd
Lets you specify a name for a program database (PDB) file.
- fmerge-debug-strings
Causes the compiler to pool strings used in debugging information.
- fsource-asm
Produces an assembly listing with source code annotations.
- ftrapuv, Qtrapuv
Initializes stack local variables to an unusual value to aid error detection.
- fverbose-asm
Produces an assembly listing with compiler comments, including options and version information.
- g, Zi, Z7
Tells the compiler to generate full debugging information in the object file or a project database (PDB) file.
- gdwarf-2
Enables generation of debugging information using the DWARF Version 2 format.
- gdwarf-3
Enables generation of debugging information using the DWARF Version 3 format.
- grecord-gcc-switches
Causes the command line options that were used to invoke the compiler to be appended to the DW_AT_producer attribute in DWARF debugging information.
- list
Tells the compiler to create a listing of the source file.
- list-line-len
Specifies the line length for the listing generated when option list is specified.
- list-page-len
Specifies the page length for the listing generated when option list is specified.
- map-opts, Qmap-opts
Maps one or more compiler options to their equivalent on a different operating system.
- o
Specifies the name for an output file.
- object
Specifies the name for an object file.
- print-multi-lib
Prints information about where system libraries should be found.
- Quse-msasm-symbols
Tells the compiler to use a dollar sign ("$") when producing symbol names.
- S
Causes the compiler to compile to an assembly file only and not link.
- show
Controls the contents of the listing generated when option list is specified.
- use-asm, Quse-asm
Tells the compiler to produce objects through the assembler.