17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

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

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

PreProcessor<br />

Purpose:<br />

Stops inserting source lines into the .LST file (until a #LIST)<br />

Examples:<br />

#NOLIST // Don't clutter up the list file<br />

#include <br />

#LIST<br />

Example Files:<br />

Also See:<br />

16c74.h<br />

#LIST<br />

#ocs<br />

Syntax:<br />

Elements:<br />

#OCS x<br />

x is the clock's speed and can be 1 Hz to 100 MHz.<br />

Purpose: Used instead of the #use delay(clock = x)<br />

Examples:<br />

#include <br />

#device ICD=TRUE<br />

#OCS 20 MHz<br />

#use rs232(debugger)<br />

void main(){<br />

-------;<br />

}<br />

Example Files:<br />

Also See:<br />

None<br />

#USE DELAY<br />

#opt<br />

Syntax:<br />

Elements:<br />

Purpose:<br />

#OPT n<br />

All Devices: n is the optimization level 1-11 or by using the word "compress"<br />

for PIC18 and Enhanced PIC16 families.<br />

The optimization level is set with this directive. This setting applies to the entire<br />

program and may appear anywhere in the file. The PCW default is 9 for normal.<br />

When Compress is specified the optimization is set to an extreme level that<br />

causes a very tight rom image, the code is optimized for space, not speed.<br />

Debugging with this level my be more difficult.<br />

119

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

Saved successfully!

Ooh no, something went wrong!