Output, Debug, and Precompiled Header (PCH) Options
- 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.
- Fa
Specifies that an assembly listing file should be generated.
- FA
Specifies the contents of an assembly listing file.
- fasm-blocks
Enables the use of blocks and entire functions of assembly code within a C or C++ file.
- FC
Displays the full path of source files passed to the compiler in diagnostics.
- fcode-asm
Produces an assembly listing with machine code annotations.
- Fd
Lets you specify a name for a program database (PDB) file.
- FD
Generates file dependencies related to the Microsoft* C/C++ compiler.
- Fe
Specifies the name for a built program or dynamic-link library.
- fmerge-debug-strings
Causes the compiler to pool strings used in debugging information.
- Fo
Specifies the name for an object file.
- Fp
Lets you specify an alternate path or file name for precompiled header files.
- Fr
Invokes the Microsoft C/C++ compiler and tells it to produce a BSCMAKE.sbr file without information on local variables. This is a deprecated option.
- FR
Invokes the Microsoft C/C++ compiler and tells it to produce a BSCMAKE .sbr file with complete symbolic 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.
- g0
Disables generation of symbolic debug information.
- 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.
- Gm
Enables a minimal rebuild.
- 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.
- 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.
- pch
Tells the compiler to use appropriate precompiled header files.
- pch-create
Tells the compiler to create a precompiled header file.
- pch-dir
Tells the compiler the location for precompiled header files.
- pch-use
Tells the compiler to use a precompiled header file.
- print-multi-lib
Prints information about where system libraries should be found.
- Qpchi
Enable precompiled header coexistence to reduce build time.
- Quse-msasm-symbols
Tells the compiler to use a dollar sign ("$") when producing symbol names.
- RTC
Enables checking for certain run-time conditions.
- S
Causes the compiler to compile to an assembly file only and not link.
- use-asm, Quse-asm
Tells the compiler to produce objects through the assembler.
- use-msasm
Enables the use of blocks and entire functions of assembly code within a C or C++ file.
- V (Windows OS*)
Places the text string specified into the object file being generated by the compiler.
- Y-
Tells the compiler to ignore all other precompiled header files.
- Yc
Tells the compiler to create a precompiled header file.
- Yd
Tells the compiler to add complete debugging information in all object files created from a precompiled header file when option /Zi or /Z7 is specified. This is a deprecated option.
- Yu
Tells the compiler to use a precompiled header file.
- ZI
Tells the compiler to generate full debugging information in the object file.