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.

Elements:<br />

Purpose:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

None<br />

The <strong>PCM</strong> compiler defines this pre-processor identifier. It may be used to<br />

determine if the <strong>PCM</strong> compiler is doing the compilation.<br />

#ifdef __pcm__<br />

#device PIC16c71<br />

#endif<br />

ex_sqw.c<br />

__<strong>PCB</strong>__, __<strong>PCH</strong>__<br />

__pch__<br />

Syntax:<br />

Elements:<br />

Purpose:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

__<strong>PCH</strong>__<br />

None<br />

The <strong>PCH</strong> compiler defines this pre-processor identifier. It may be used to<br />

determine if the <strong>PCH</strong> compiler is doing the compilation.<br />

#ifdef _ _ <strong>PCH</strong> _ _<br />

#device PIC18C452<br />

#endif<br />

ex_sqw.c<br />

__<strong>PCB</strong>__, __<strong>PCM</strong>__<br />

#pragma<br />

Syntax:<br />

Elements:<br />

Purpose:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

#PRAGMA cmd<br />

cmd is any valid preprocessor directive.<br />

This directive is used to maintain compatibility between C compilers. This<br />

compiler will accept this directive before any other pre-processor command. In<br />

no case does this compiler require this directive.<br />

#pragma device PIC16C54<br />

ex_cust.c<br />

None<br />

124

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

Saved successfully!

Ooh no, something went wrong!