Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
3.1 KiB

  1. C COMPILER OPTIONS
  2. -OPTIMIZATION-
  3. /O1 minimize space /Op[-] improve floating-pt consistency
  4. /O2 maximize speed /Os favor code space
  5. /Oa assume no aliasing /Ot favor code speed
  6. /Ob<n> inline expansion (default n=0) /Ow assume cross-function aliasing
  7. /Od disable optimizations (default) /Ox maximum opts. (/Ogityb1 /Gs)
  8. /Og enable global optimization /Oy[-] enable frame pointer omission
  9. /Oi enable intrinsic functions
  10. -CODE GENERATION-
  11. /G3 optimize for 80386 /Ge enable stack checking calls
  12. /G4 optimize for 80486 /Gs[num] disable stack checking calls
  13. /G5 optimize for Pentium /Gf enable string pooling
  14. /GB optimize for blended model (default) /Gy separate functions for linker
  15. /Gd __cdecl calling convention /Gh enable hook function call
  16. /Gr __fastcall calling convention /GX- disable C++ EH (default)
  17. /Gz __stdcall calling convention /GX enable C++ EH
  18. -OUTPUT FILES-
  19. /Fa[file] name assembly listing file /Fo<file> name object file
  20. /FA[sc] configure assembly listing /Fp<file> name precompiled header file
  21. /Fd[file] name .PDB file /Fr[file] name source browser file
  22. /Fe<file> name executable file /FR[file] name extended .SBR file
  23. /Fm[file] name map file
  24. -PREPROCESSOR-
  25. /C don't strip comments /FI<file> name forced include file
  26. /D<name>{=|#}<text> define macro /U<name> remove predefined macro
  27. /E preprocess to stdout /u remove all predefined macros
  28. /EP preprocess to stdout, no #line /I<dir> add to include search path
  29. /P preprocess to file /X ignore "standard places"
  30. -LANGUAGE-
  31. /vd{0|1} disable/enable vtordisp /Za disable extensions (implies /Op)
  32. /vm<x> type of pointers to members /Ze enable extensions (default)
  33. /Zi prepare for debugging (CodeView) /Zg generate function prototypes
  34. /Z7 C7 style CodeView information /Zl omit default library name in .OBJ
  35. /Zd line number information /Zs syntax check only
  36. /Zp[n] pack structs on n-byte boundary
  37. -MISCELLANEOUS-
  38. /?, /help print this help message /w disable all warnings
  39. /c compile only, no link /W<n> set warning level (default n=1)
  40. /H<num> max external name length /WX treat warnings as errors
  41. /J default char type is unsigned /Yc[file] create .PCH file
  42. /nologo suppress copyright message /Yd put debug info in every .OBJ
  43. /Tc<source file> compile file as .c /Yu[file] use .PCH file
  44. /Tp<source file> compile file as .cpp /YX[file] automatic .PCH
  45. /V<string> set version string /Zn turn off SBRPACK for .SBR files
  46. -LINKING-
  47. /MD link with MSVCRT.LIB /F<num> set stack size
  48. /ML link with LIBC.LIB /LD Create .DLL
  49. /MT link with LIBCMT.LIB /link [linker options and libraries]