Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc

09.06.2013 Views

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

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!