Intel XENIX 286 Programmers Guide (86) - Tenox.tc
Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc
XENIX Programming Programming Commands CC (continued) -K Removes stack probes from a program. Stack probes are used to detect stack overflow on entry to program routines. -nl num Sets the maximum length of external symbols to num. Names longer than num are truncated before being copied to the external symbol table. -A1fu Same as -Ml, plus saves/restores the value of the ds register before and after procedure calls. The value is saved on the stack. -Alhu same as -Mh, plus saves/restores the value of the ds register before and after procedure calls. The value is saved on the stack. -M string Sets the program configuration. This configuration defines the program's memory model, word order, and data threshold. It also enables C language enhancements such as advanced instruction sets and keywords. string may be any combination of the following (except that the s, m, 1, and h options are mutually exclusive, as are 0, 1, and 2). s Creates a small model program (default). m Creates a middle model program. 1 Creates a large model program. h Creates a huge model program. e Enables these keywords: far, near, pascal, and fortran. 0 Enables 86 code generation. 1 Enables 186 code generat ion. 2 Enables 286 code generation (default). b Reverses the word orde.r for long types. High order word is first. Default is low order word first. t num Sets the size of the largest data item in the data group to num. Default is 32,767. Items larger than this threshold are placed in another segment. d Sets SS equal to DS. -c Suppresses linking of the object modules produced by the compilation(s). No executable program is created. -o filename Defines filename to be the name of the final executable program. This option overrides the default name a.out and is effective only when the linker is invoked. -dos Directs cc to create an executable program for MS-DOS systems. B-23
Programming Commands XENIX Programming CC (continued) -llibrary Searches library for unresolved references to symbols. The library must be an object file archive in ranlib format. -0 Invokes the object code optimizer during compilation. Any one of the following strings can be appended after the 0 to provide different levels of optimizer control. Without any letter following the 0, the normal optimization is to favor code size and execution speed. d Disable optimization; performs no optimization. a Relax aliasing checks. s Favor code size. t Favor execution time. x Maximum optimization (equivalent to -Oas and -K). This option should be used with caution. -S Creates an assembly source listing of the compiled C source file and copies this listing to the file whose basename is the same as the source but whose extension is .s. Linking is also suppressed. It should be noted that this file is not suitable for assembly. This option provides code for inspection only. -L Creates an assembler listing file containing assembled code and assembly source instructions. The listing is copied to the file whose basename is the same as the source but whose extension is .L. This option overrides the -S option and suppresses linking. -NM name Sets the module name for each compiled or assembled source file to name. If not given, the filename of each source file is used. -NT name Sets the text segment name for each compiled or assembled source file to name. If not given, the name moduleTEXT is used for middle model, and _TEXT for small model. -ND name Sets the data segment name for each compiled or assembled source file to name. If not given, the name _DATA is used. Many options (or equivalent forms of these options) are passed to the link editor as the last phase of compilation. The s, m, and 1 configuration options are passed to specify memory requirements. The -i, -F, and -p are passed to specify other characteristics of the final program. The -D and -1 options may be used several times on the command line. The -D option must not define the same name twice. These options affect subsequent source files only. B-24
- Page 238 and 239: XENIX Programming I* lexical analys
- Page 240: XENIX Programming yacc: Compiler-Co
- Page 243 and 244: m4: Macro Processor XENIX Programmi
- Page 245 and 246: m4: Macro Processor XENIX Programmi
- Page 247 and 248: m4: Macro Processor XENIX Programm
- Page 249 and 250: m4: Macro Processor XENIX Programmi
- Page 251 and 252: m4: Macro Processor XENIX Programmi
- Page 253 and 254: C Language Portability XENIX Progra
- Page 255 and 256: C Language Portability XENIX Progra
- Page 257 and 258: C Language Portability XENIX Progra
- Page 259 and 260: C Language Portability XENIX Progra
- Page 261 and 262: C Language Portability XENIX Progra
- Page 263 and 264: C Language Portability XENIX Progra
- Page 266 and 267: APPENDIX B PROG RAMMING COMMANDS Th
- Page 268 and 269: XENIX Programming ad b (continued)
- Page 270 and 271: XENIX Programming Programming Comma
- Page 272 and 273: XENIX Programming Programming Comma
- Page 274 and 275: XENIX Programming Programming Comma
- Page 276 and 277: XENIX Programming Programming Comma
- Page 278 and 279: XENIX Programming Programming Comma
- Page 280 and 281: XENIX Programming Programming Comma
- Page 282 and 283: XENIX Programming Programming Comma
- Page 284 and 285: XENIX Programming as (continued) Fi
- Page 286 and 287: XENIX Programming Programming Comma
- Page 290 and 291: XENIX Programming Programm ing Comm
- Page 292 and 293: XENIX Programming Programming Comma
- Page 294 and 295: XENIX Programming Programming Comma
- Page 296 and 297: XENIX Programming Programm ing Comm
- Page 298 and 299: XENIX Programming Programming Comma
- Page 300 and 301: XENIX Programming Programming Comma
- Page 302 and 303: XENIX Programming Programming Comma
- Page 304 and 305: XENIX Programming Programming Comma
- Page 306 and 307: XENIX Programming Programming Comma
- Page 308 and 309: XENIX Programming Programming Comma
- Page 310 and 311: XENIX Programming Programming Comma
- Page 312 and 313: XENIX Programming Programming Comma
- Page 314 and 315: XENIX Programm ing Programming Comm
- Page 316 and 317: XENIX Programming Programming Comma
- Page 318 and 319: XENIX Programming Programming Comma
- Page 320 and 321: XENIX Programming Programming Comma
- Page 322 and 323: XENIX Programming Programming Comma
- Page 324 and 325: XENIX Programming Programming Comma
- Page 326 and 327: XENIX Programming Programming Comma
- Page 328 and 329: XENIX Programming Programming Comma
- Page 330 and 331: XENIX Programming Programming Comma
- Page 332 and 333: XENIX Programming Programming Comma
- Page 334 and 335: XENIX Programming Programming Comma
- Page 336 and 337: XENIX Programming Programming Comma
Programming Commands <strong>XENIX</strong> Programming<br />
CC (continued)<br />
-llibrary<br />
Searches library for unresolved references to symbols. The library must be an<br />
object file archive in ranlib format.<br />
-0 Invokes the object code optimizer during compilation. Any one of the following<br />
strings can be appended after the 0 to provide different levels of optimizer<br />
control. Without any letter following the 0, the normal optimization is to favor<br />
code size and execution speed.<br />
d Disable optimization; performs no optimization.<br />
a Relax aliasing checks.<br />
s Favor code size.<br />
t Favor execution time.<br />
x Maximum optimization (equivalent to -Oas and -K). This option should<br />
be used with caution.<br />
-S Creates an assembly source listing of the compiled C source file and copies this<br />
listing to the file whose basename is the same as the source but whose extension<br />
is .s. Linking is also suppressed. It should be noted that this file is not suitable<br />
for assembly. This option provides code for inspection only.<br />
-L Creates an assembler listing file containing assembled code and assembly source<br />
instructions. The listing is copied to the file whose basename is the same as the<br />
source but whose extension is .L. This option overrides the -S option and<br />
suppresses linking.<br />
-NM name<br />
Sets the module name for each compiled or assembled source file to name. If<br />
not given, the filename of each source file is used.<br />
-NT name<br />
Sets the text segment name for each compiled or assembled source file to name.<br />
If not given, the name moduleTEXT is used for middle model, and _TEXT for<br />
small model.<br />
-ND name<br />
Sets the data segment name for each compiled or assembled source file to name.<br />
If not given, the name _DATA is used.<br />
Many options (or equivalent forms of these options) are passed to the link editor as the<br />
last phase of compilation. The s, m, and 1 configuration options are passed to specify<br />
memory requirements. The -i, -F, and -p are passed to specify other characteristics of<br />
the final program.<br />
The -D and -1 options may be used several times on the command line. The -D option<br />
must not define the same name twice. These options affect subsequent source files<br />
only.<br />
B-24