0% found this document useful (0 votes)
24 views1 page

C Reference Manual - October 2005.75

The document defines two preprocessor identifiers: __TIME__ which is replaced with the compile time, and #TYPE which allows redefining standard C type sizes like int, short, and long. #TYPE can specify sizes of 1, 8, 16, or 32 bits or reference a predefined memory area.

Uploaded by

diegoifg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views1 page

C Reference Manual - October 2005.75

The document defines two preprocessor identifiers: __TIME__ which is replaced with the compile time, and #TYPE which allows redefining standard C type sizes like int, short, and long. #TYPE can specify sizes of 1, 8, 16, or 32 bits or reference a predefined memory area.

Uploaded by

diegoifg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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