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.

139 lines
4.0 KiB

  1. C COMPILER OPTIONS
  2. -MEMORY MODEL-
  3. /AS small model (default)
  4. /AC compact model
  5. /AM medium model
  6. /AL large model
  7. /AH huge model
  8. /AT tiny model (.COM files)
  9. /A<string> (custom memory model)
  10. -OPTIMIZATION-
  11. /O enable optimization (same as /Ot)
  12. /O1 minimize space
  13. /O2 maximize speed
  14. /Oa assume no aliasing
  15. /Ob<n> inline expansion (default n=0)
  16. /Oc local common subexpression opt.
  17. /Od disable optimization (default)
  18. /Oe enable registers allocation
  19. /Of[-] toggle p-code quoting
  20. /Og global common subexpression opt.
  21. /Oi enable intrinsic functions
  22. /Ol enable loop optimizations
  23. /On disable "unsafe" optimizations
  24. /Oo[-] toggle post code-gen. opt.
  25. /Op[-] improve floating-pt consistency
  26. /Oq enable maximum p-code optimization
  27. /Or gen. common exit code (CodeView)
  28. /Os favor code size
  29. /Ot favor code speed
  30. /Ov[-] toggle p-code frame sorting
  31. /OV<n> control inlining by func. size
  32. /Ow assume cross-function aliasing
  33. /Ox maximum opts. (/Ob1cegilnot /Gs)
  34. /Oz enable "unsafe" optimizations
  35. -CODE GENERATION-
  36. /G0 8086 instructions (default)
  37. /G1 186 instructions
  38. /G2 286 instructions
  39. /G3 386 instructions
  40. /GA protected-mode Win entry/exit code
  41. /GD protected-mode Win entry/exit code
  42. /GE<x> customize Windows entry/exit
  43. /Gq backwards compatibility with v. 6
  44. /Gc Pascal style calling conventions
  45. /Gd C style calling conventions
  46. /Ge use stack-check calls
  47. /Gf enable string pooling
  48. /Gs remove stack-check calls
  49. /Gn remove p-code native entry points
  50. /Gp<num> specify p-code entry tables
  51. /Gr _fastcall style calling convention
  52. /Gt[num] data size threshold
  53. /GW real-mode Windows entry/exit code
  54. /Gw real-mode Windows entry/exit code
  55. /Gx assume that data is near
  56. /Gx- assume that data is far
  57. /Gy separate functions for linker
  58. /Zr check null pointers (/f only)
  59. -OUTPUT FILES-
  60. /Fa[file] name assembly listing file
  61. /Fc[file] name source/object listing
  62. /Fd[file] name .PDB filename
  63. /Fe<file> name executable filename
  64. /Fl[file] name object listing filename
  65. /Fm[file] name map filename
  66. /Fo<file> name object filename
  67. /Fr[file] name .SBR filename
  68. /Fp<file> name .PCH filename
  69. /FR[file] name extended .SBR filename
  70. /Fs[file] name source listing filename
  71. -PREPROCESSOR-
  72. /C don't strip comments
  73. /D<name>[=|#text] define macro
  74. /E preprocess to stdout
  75. /EP same as /E but no #line
  76. /I<directory> add #include path
  77. /P preprocess to file
  78. /U<name> remove predefined macro
  79. /u remove all defined macros
  80. /X ignore "standard places"
  81. -LANGUAGE-
  82. /vd{0|1} disable/enable vtordisp
  83. /vm<x> type of pointers to members
  84. /Z7 C 7 style CodeView information
  85. /Za disable extensions (implies /Op)
  86. /Zd line number information
  87. /Ze enable extensions (default)
  88. /Zg generate function prototypes
  89. /Zi prepare for debugging (CodeView)
  90. /Zl omit default library name in .OBJ
  91. /Zp[n] pack structs on n-byte boundary
  92. /Zs check syntax only
  93. -FLOATING POINT-
  94. /FPa calls with altmath
  95. /FPc calls with emulator
  96. /FPc87 calls with 8087 library
  97. /FPi inline with emulator (default)
  98. /FPi87 inline with 8087
  99. -SOURCE LISTING-
  100. /Sl<columns> set line width
  101. /Sp<lines> set page length
  102. /St<string> set title string
  103. /Ss<string> set subtitle string
  104. -MISCELLANEOUS-
  105. /batch specify batch mode compilation
  106. /Bm<num> set compiler's available mem.
  107. /c compile only, no link
  108. /H<num> external name length
  109. /J default char type is unsigned
  110. /f select fast compiler (default)
  111. /f- select optimizing compiler
  112. /Yc create .PCH file
  113. /Yd put debug info in .PCH file
  114. /Yu use .PCH file
  115. /YX automatic precompiled header
  116. /nologo suppress copyright message
  117. /Mq compile for QuickWin
  118. /ND<name> name data segment
  119. /NM<name> name code segment
  120. /NQ<name> combine p-code temp segments
  121. /NT<name> name code segment
  122. /NV<name> name far v-table segment
  123. /Tc<file> compile file without .c
  124. /Tp<file> compile file without .cpp
  125. /V<string> set version string
  126. /W<n> warning level (default n=1)
  127. /w disable all warnings
  128. /WX treat all warnings as errors
  129. /Zn turn off SBRPACK for .SBR files
  130. -MASM SUPPORT-
  131. /MA<MASM switch>
  132. /Ta<file> assemble file without .asm
  133. -LINKING-
  134. /F <hex_num> stack size (hex. bytes)
  135. /Lr append 'r' to default lib in .OBJ
  136. /link [lib] give lib name to linker
  137. /Ln do not link CRT.LIB
  138. /Ld select dynamically-linked library
  139. /Lw select statically-linked library