02.05.2013 Views

Description - Mks.com

Description - Mks.com

Description - Mks.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

-Wv<br />

environment for the MKS Toolkit UNIX APIs. If you are not working in this<br />

environment, you must specify these library paths with the -L option.<br />

selects verbose mode.<br />

This option is passed through to the linker.<br />

-W/option<br />

specifies an option that is to be passed either to the C <strong>com</strong>piler or to linker with the leading<br />

-W removed. The options — subsystem, def, base, entry, implib, machine, map, out,<br />

stack, and dll — are passed to the linker; all others are passed to the <strong>com</strong>piler.<br />

-x<br />

-Xc<br />

-Xa<br />

-Xs<br />

-Xt<br />

when linking, strips debugging information related to local symbols from the output file.<br />

This option is passed through to the linker.<br />

<strong>com</strong>piles with strict ANSI C conformance. Only symbols specified by the ANSI C<br />

specification are visible during <strong>com</strong>pilation.<br />

This option be<strong>com</strong>es the /D__STRICT_ANSI=1 and /D__STDC__=1 options to cl.<br />

<strong>com</strong>piles with non-strict ANSI C conformance. Only symbols specified by the ANSI C<br />

specification are visible during <strong>com</strong>pilation.<br />

This option be<strong>com</strong>es the /D__STDC__=0 to cl.<br />

While this reference page describes cc as an interface to the Microsoft C <strong>com</strong>piler, that is not the<br />

<strong>com</strong>plete truth. In truth, cc is a configurable interface to any C <strong>com</strong>piler and is designed for use<br />

with make. Theoretically, you can simply redefine cc on each system to work with that system's C<br />

<strong>com</strong>piler and by simply using cc in your makefiles, you can use those same makefile across<br />

different system.<br />

cc uses a <strong>com</strong>pilation configuration file to convert arguments on a standard <strong>com</strong>mand line into<br />

the arguments for the <strong>com</strong>mand or sequence of <strong>com</strong>mands needed to call your <strong>com</strong>piler or linker.<br />

If you want to change your <strong>com</strong>piler or linker, change the appropriate configuration file; do not<br />

change your makefile.<br />

358 of 457

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

Saved successfully!

Ooh no, something went wrong!