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.

Programming Commands <strong>XENIX</strong> Programming<br />

CC (continued)<br />

-D name [=string]<br />

Defines name to the preprocessor as if defined by a #define in each source file.<br />

The form -D name sets name to 1. The form -D name = string sets name to the<br />

given string.<br />

-u name [=string]<br />

Removes definition of name so that the preprocessor removes the name defined<br />

by a #define in each source file. The form -U name sets name to 0. The form<br />

-U name = string undefines name for the given string.<br />

-1 pathname<br />

Adds pathname to the list of directories to be searched when a #include file is<br />

not found in the directory containing the current source file or whenever angle<br />

brackets ( < >) enclose the filename. There is a standard list of directories which<br />

is searched automatically.<br />

-X Removes the standard directories from the list of directories to be searched for<br />

#include files.<br />

-V string<br />

Copies string to the object file created from the given source file. This option<br />

may be used for version control.<br />

-W num<br />

Sets the output level for compiler warning messages. If num is 0, no warning<br />

messages are issued. If 1, only warnings about program structure and overt type<br />

misma<strong>tc</strong>hes are issued. If 2, warnings about strong typing misma<strong>tc</strong>hes are<br />

issued. If 3, warnings for all automatic conversions are issued. This option does<br />

not affect compiler message output for non-warning messages.<br />

-w Prevents compiler warning messages from being issued. Same as -W 0.<br />

-p Adds code for program profiling. Profiling code counts the number of calls to<br />

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

This file can be examined 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 />

-F num<br />

B-22<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 />

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

is 4K bytes.

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

Saved successfully!

Ooh no, something went wrong!