SW500009 Microchip Technology, SW500009 Datasheet - Page 84

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
Preprocessing
3.12 Preprocessing
All C source files are preprocessed before compilation. Assembler files can also be preprocessed if
the -P command-line option is issued.
3.12.1 Preprocessor Directives
HI-TECH PICC STD accepts several specialised preprocessor directives in addition to the standard
directives. All of these are listed in Table 3.6.
the ## sequence to concatenate tokens.
3.12.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.12.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.12.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
70
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 SW500009