You are on page 1of 1

Data Definitions

__TIME __
Syntax:

__time__

Elements:

None

Purpose:

This pre-processor identifier is replaced at compile time with


the time of the compile in the form: "hh:mm:ss"

Examples:

printf("Software was compiled on ");


printf(__TIME__);

Example Files:

None

Also See:

None

#TYPE
Syntax:

#type standard-type=size
#type default=area

Elements:

standard-type is one of the C keywords short, int, long, or a


user defined size
size is 1,8,16 or 32
area is a memory region defined before the #TYPE using the
typemod directive
By default the compiler treats SHORT as one bit, INT as 8
bits, and LONG as 16 bits. The traditional C convention is to
have INT defined as the most efficient size for the target
processor. This is why it is 8 bits on the PIC. In order to
help with code compatibility a #TYPE directive may be used
to allow these types to be changed. #TYPE can redefine
these keywords.

Purpose:

Note that the commas are optional. Since #TYPE may


render some sizes inaccessible (like a one bit int in the
above) four keywords representing the four ints may always
be used: INT1, INT8, INT16, and INT32. Be warned CCS

63

You might also like