09.06.2013 Views

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

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

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>XENIX</strong> Programm ing cc: C Compiler<br />

each routine in the program and copies this information to the mon.out file.<br />

This file can be exam ined using the prof command. Profiling is supported only<br />

in small model.<br />

-pack Packs structure members. Caution should be taken when using the pack option<br />

because structures are no longer word-aligned.<br />

-i Creates separate instruction and data spaces for small model programs. When<br />

the output file is executed, the program text and data areas are allocated<br />

separate physical segments. The text portion will be read-only and may be<br />

shared by all users executing the file. The option is implied when creating<br />

middle, large, or huge model programs.<br />

-F num<br />

Sets the size of the program stack to num bytes. Default stack size if not given<br />

is 4K bytes.<br />

-K Removes stack probes from a program. Stack probes are used to detect stack<br />

overflow on entry to program routines.<br />

-nl num<br />

Sets the maximum length of external symbols to num. Names longer than num<br />

are truncated before being copied to the external symbol table.<br />

-Alfu Same as -Ml, plus saves/restores the value of the ds register before and after<br />

procedure calls. The value is saved on the stack.<br />

-Alhu Same as -Mh, plus saves/restores the value of the ds register before and after<br />

procedure calls. The value is saved on the stack.<br />

-M string<br />

Sets the program configuration. This configuration defines the program's<br />

memory model, word order, and data threshold. It also enables C language<br />

enhancements such as advanced instruction sets and keywords. string may be<br />

any combination of the following (except that the s, m, I, and h options are<br />

mutually exclusive, as are 0, 1, and 2).<br />

s Creates a small model program (default).<br />

m Creates a middle model program.<br />

1 Creates a large model program.<br />

h Creates a huge model program.<br />

e Enables these keywords: far, near, pascal, and fortran.<br />

0 Enables <strong>86</strong> code generation.<br />

1 Enables 1<strong>86</strong> code generation.<br />

2 Enables <strong>2<strong>86</strong></strong> code generation (default).<br />

b Reverses the word order for long types. High order word is first.<br />

Default is low order word first.<br />

t num Sets the size of the largest data item in the data group to num. Default<br />

is 32,767. Items larger than this threshold are placed in another<br />

segment.<br />

2-2 1

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

Saved successfully!

Ooh no, something went wrong!