Skip to content

Instantly share code, notes, and snippets.

@vassvik
Last active September 8, 2018 13:12
Show Gist options
  • Save vassvik/693e074fa8495a710217feb2d0f811d8 to your computer and use it in GitHub Desktop.
Save vassvik/693e074fa8495a710217feb2d0f811d8 to your computer and use it in GitHub Desktop.
Default Visual Studio compiler parameters and what they mean
/permissive- standards conformance
/MP build with multiple processors
/GS buffer security check
/Qpar auto-parallelizer
/GL whole program optimization
/W3 warning level
/wd"4305" identifier' : truncation from 'type1' to 'type2'
/Gy enable function-level linking
/Zc:wchar_t wchar_t is native type
/Zi debug information format
/Gm- enable minimal rebuild (what does the - mean? disabled?)
/O2 optimization levels
/Ob2 inline function expansion
/sdl enable additional security checks
/Fd"build\x64\Release\vc141.pdb" program database file name
/Zc:inline remove unreferenced COMDAT
/fp:precise specify floating point behavior, precise (default)
/D "_CRT_SECURE_NO_WARNINGS" no warnings on "dangerous" C functions
/D "_MBCS" support for multibyte character sets
/fp:except specify floating point behavior, reliable floating point exception model
/errorReport:prompt report internal compiler errors
/GF eliminate duplicate strings
/GT support fiber-safe thread-local storage
/WX- treat linker warnings as errors (disabled?)
/Zc:forScope force conformance in for loop scope
/Gd calling convention, cdecl (default)
/Oi generate intrinsic functions
/MT use multithreaded static run-time library
/FC full path of source code file in diagnostics
/Fa"build\x64\Release" listing file (one asm file for each source file)
/EHsc unwinding exception handling model
/nologo //
/Fo"build\x64\Release" file object name
/Ot favor fast code
/Fp"build\x64\Release\vcg.pch" name pch file
/diagnostics:classic //
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment