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.

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