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* and macOS*)
Enables or disables generation of debugging information.
- debug (Windows*)
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 created by the compiler.
- feliminate-unused-debug-types, Qeliminate-unused-debug-types
Controls the debug information emitted for types declared in a compilation unit.
- fmerge-constants
Determines whether the compiler and linker attempt to merge identical constants (string constants and floating-point constants) across compilation units.
- 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
Tells the compiler to generate a level of debugging information in the object file.
- gdwarf
Lets you specify a DWARF Version format when generating debug information.
- 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.
- gsplit-dwarf
Creates a separate object file containing DWARF debug 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.
- pdbfile
Lets you specify the name for a program database (PDB) file created by the linker.
- 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. This is a deprecated option. There is no replacement option.
- Zi, Z7
Tells the compiler to generate full debugging information in either an object (.obj) file or a project database (PDB) file.
- Zo
Enables or disables generation of enhanced debugging information for optimized code.