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.

PreProcessor<br />

#priority<br />

Syntax:<br />

Elements:<br />

#PRIORITY ints<br />

ints is a list of one or more interrupts separated by commas.<br />

export makes the functions generated from this directive available to other<br />

compilation units within the link.<br />

Purpose:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

The priority directive may be used to set the interrupt priority. The highest<br />

priority items are first in the list. If an interrupt is active it is never interrupted. If<br />

two interrupts occur at around the same time then the higher one in this list will<br />

be serviced first. When linking multiple compilation units be aware only the one<br />

in the last compilation unit is used.<br />

#priority rtcc,rb<br />

None<br />

#INT_xxxx<br />

#profile<br />

Syntax:<br />

Elements:<br />

#profile options<br />

options may be one of the following:<br />

functions<br />

functions,<br />

parameters<br />

profileout<br />

paths<br />

off<br />

Profiles the start/end of functions and all<br />

profileout() messages.<br />

Profiles the start/end of functions,<br />

parameters sent to functions, and all<br />

profileout() messages.<br />

Only profile profilout() messages.<br />

Profiles every branch in the code.<br />

Disable all code profiling.<br />

125

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

Saved successfully!

Ooh no, something went wrong!