Поделиться через


Shared Build Options (Windows Embedded CE 6.0)

1/5/2010

The following table shows options that are supported by all supported compilers, including those that target desktop workstations and smart devices.

For additional documentation on these options, see the Visual C++ reference in the Visual Studio documentation.

/? (Compiler Command-Line Help)

/analyze (Enable code analysis)

/c (Compile Without Linking)

/C (Preserve Comments During Preprocessing))

/D (Preprocessor Definitions)

/E (Preprocess to stdout)

/EH (Exception Handling Model)

/EP (Preprocess to stdout Without #line Directives)

/F (Set Stack Size)

/FA, /Fa (Listing File)

/Fd (Program Database File Name)

/Fe (Name EXE File)

/FI (Name Forced Include File)

/Fm (Name Mapfile)

/Fo (Object File Name)

/Fp (Name .pch File)

/FR (Create .sbr File)The /Fr option is deprecated. Use /FR instead.

/Ge

This option is ignored.

/GF (Eliminate Duplicate Strings)

/GL (Whole Program Optimization)

/GR[-] (Enable [Disable] Run-Time Type Information)

/GS (Enables stack checking to detect buffer overrun attacks)

/GX

The /GX option is deprecated. Use /EH instead.

/Gy (Enable Function-Level Linking)

/GZ

The /GZ option is deprecated on SH-4 and unsupported on MIPS and ARM. On x86, use /RTC instead.

/H

The /H option is deprecated. No alternative is suggested.

/HELP (Compiler Command-Line Help)

/I (Additional Include Directories)

/J (Default char Type Is unsigned)

/link (Pass Options to Linker)

/MD, /MT, /LD (Use Run-Time Library)

/nologo (Suppress Startup Banner) (C/C++)

/O1, /O2 (Minimize Size, Maximize Speed)

/Ob[n] (Inline Function Expansion; n= 0, 1, 2)

/Od (Disable Optimizations (Debug))

/Og

The /Og option is deprecated. Use /O1, /O2 instead.

/Oi (Generate Intrinsic Functions)

/Os, /Ot (Favor Small Code, Favor Fast Code)

/Ox (Full Optimization)

/P (Preprocess to a File)

/RTC (Run-Time Error Checks) (x86 only)

/showIncludes (List Include Files)

/Tc, /Tp, /TC, /TP (Specify Source File Type)

/U, /u (Undefine Symbols)

/V

The /V option is deprecated. No alternative option is suggested.

/vd (Disable Construction Displacements)

/vmb, /vmg (Representation Method)

/vmm, /vms, /vmv (General Purpose Representation)

/w, /Wn, /WX, /Wall, /wln, /wdn, /wen, /won (Warning Level)

/WL (Enable One-Line Diagnostics)

/Wp64 (Detect 64-Bit Portability Issues)

/X (Ignore Standard Include Paths)

/Y (Precompiled Headers)

/Yc (Create Precompiled Header File)

/Yd (Place Debug Information in Object File)The /Yd option is deprecated. Use the /Z7, /Zi, /ZI option instead.

/Yu (Use Precompiled Header File)

/YX (Automatic Use of Precompiled Headers)

/Z7, /Zd, /Zi, /ZI (Debug Information Format)

/Za, /Ze (Disable Language Extensions)

/Zc (Conformance)

/Zg (Generate Function Prototypes)The /Zg option is deprecated. No alternative option is suggested.

/Zl (Omit Default Library Name)

/Zm (Specify Precompiled Header Memory Allocation Limit)

/Zp (Struct Member Alignment)

/Zs (Syntax Check Only)

See Also

Reference

ARM Compiler Options
Renesas Compiler Options
MIPS Compiler Options

Other Resources

Differences Between Desktop and Device Compilers