17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

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

EXCEPT=symbol+symbol+.....+symbol<br />

The listed symbols will not be imported from the specified relocatable object<br />

file. If neither ONLY or EXCEPT is used, all symbols are imported.<br />

RELOCATABLE<br />

<strong>CCS</strong> relocatable object file format. This is the default format when the<br />

#IMPORT is used.<br />

COFF<br />

COFF file format from MPASM, C18 or C30.<br />

HEX<br />

Imported data is straight hex data.<br />

RANGE=start:stop<br />

Only addresses in this range are read from the hex file.<br />

LOCATION=id<br />

The identifier is made a constant with the start address of the imported data.<br />

SIZE=id<br />

The identifier is made a constant with the size of the imported data.<br />

Purpose:<br />

Examples:<br />

Example Files:<br />

See Also:<br />

This directive will tell the compiler to include (link) a relocatable object with<br />

this unit during compilation. Normally all global symbols from the specified<br />

file will be linked, but the EXCEPT and ONLY options can prevent certain<br />

symbols from being linked.<br />

The command line compiler and the PCW IDE Project Manager can also be<br />

used to compile/link/build modules and/or projects.<br />

#IMPORT(FILE=timer.o, ONLY=TimerTask)<br />

void main(void)<br />

{<br />

while(TRUE)<br />

TimerTask();<br />

}<br />

/*<br />

timer.o is linked with this compilation, but only TimerTask() is visible in<br />

scope from this object.<br />

*/<br />

None<br />

#EXPORT, #MODULE, Invoking the Command Line <strong>Compiler</strong>, Multiple<br />

Compilation Unit<br />

#include<br />

Syntax:<br />

#INCLUDE <br />

or<br />

110

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

Saved successfully!

Ooh no, something went wrong!