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.

Data Definitions<br />

Type Qualifiers<br />

Type-Qualifier<br />

static<br />

auto<br />

double<br />

extern<br />

register<br />

_ fixed(n)<br />

unsigned<br />

signed<br />

volatile<br />

const<br />

rom<br />

void<br />

readonly<br />

bif<br />

attribute__<br />

Variable is globally active and initialized to 0. Only accessible from this<br />

compilation unit.<br />

Variable exists only while the procedure is active. This is the default and<br />

AUTO need not be used.<br />

Is a reserved word but is not a supported data type.<br />

External variable used with multiple compilation units. No storage is<br />

allocated. Is used to make otherwise out of scope data accessible. there<br />

must be a non-extern definition at the global level in some compilation<br />

unit.<br />

Is allowed as a qualifier however, has no effect.<br />

Creates a fixed point decimal number where n is how many decimal<br />

places to implement.<br />

Data is always positive. This is the default data type if not specified.<br />

Data can be negative or positive.<br />

Tells the compiler optimizer that this variable can be changed at any point<br />

during execution.<br />

Data is read-only. Depending on compiler configuration, this qualifier<br />

may just make the data read-only -AND/OR- it may place the data into<br />

program memory to save space. (see #DEVICE const=)<br />

Forces data into program memory. Pointers may be used to this data but<br />

they can not be mixed with RAM pointers.<br />

Built-in basic type. Type void is used to indicate no specific type in places<br />

where a type is required.<br />

Writes to this variable should be dis-allowed<br />

Used for compiler built in function prototypes on the same line<br />

Sets various attributes<br />

SEE ALSO: Declarations, Type Specifiers, Enumerated Types, Structures & Unions, typedef,<br />

Named Registers<br />

29

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

Saved successfully!

Ooh no, something went wrong!