SW500010 Microchip Technology, SW500010 Datasheet - Page 106

HI-TECH C PRO FOR PIC10/12/16

SW500010

Manufacturer Part Number
SW500010
Description
HI-TECH C PRO FOR PIC10/12/16
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC10/12/16r
Datasheets

Specifications of SW500010

Supported Families
PIC10, PIC12, PIC16
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC10/12/16
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC10, PIC12, PIC14, PIC16, PIC16E
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
019P
778-1006
778-1006
Preprocessing
3.11 Preprocessing
All C source files are preprocessed before compilation. Assembler files can also be preprocessed if
the -P command-line option is issued.
3.11.1 Preprocessor Directives
HI-TECH C PRO for the PIC10/12/16 MCU Family accepts several specialised preprocessor direc-
tives in addition to the standard directives. All of these are listed in Table 3.6.
the ## sequence to concatenate tokens.
3.11.2 Predefined Macros
The compiler drivers define certain symbols to the preprocessor (CPP), allowing conditional com-
pilation based on chip type etc. The symbols listed in Table
defined by the drivers. Each symbol, if defined, is equated to 1 unless otherwise stated.
3.11.3 Pragma Directives
There are certain compile-time directives that can be used to modify the behaviour of the compiler.
These are implemented through the use of the ANSI standard #pragma facility. The format of a
pragma is:
A list of the keywords is given in Table 3.9. Those keywords not discussed elsewhere are detailed
below.
3.11.3.1 The #pragma inline Directive
The #pragma inline directive is used to indicate to the compiler that a function is to be inlined.
The directive is only able to be used on functions that are hard coded in the code generator of the
compiler. User defined and library function are not able to be inlinded. This directive should be
placed directly before the function prototype of the inline function. Below is example usage
106
Macro expansion using arguments can use the # character to convert an argument to a string, and
#pragma keyword options
where keyword is one of a set of keywords, some of which are followed by certain options.
#pragma inline(__va_start)
extern void *
__va_start(void);
3.7
show the more common symbols
C Language Features

Related parts for SW500010