SW500009 Microchip Technology, SW500009 Datasheet - Page 85

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
C Language Features
#
#assert
#asm
#define
#elif
#else
#endasm
#endif
#error
#if
#ifdef
#ifndef
#include
#line
#nn
#pragma
#undef
#warning
Directive
preprocessor null directive, do
nothing
generate error if condition false
signifies the beginning of in-line
assembly
define preprocessor macro
short for #else #if
conditionally include source lines
terminate in-line assembly
terminate conditional source
inclusion
generate an error message
include source lines if constant
expression true
include source lines if preprocessor
symbol defined
include source lines if preprocessor
symbol not defined
include text file into source
specify line number and filename
for listing
(where nn is a number) short for
#line nn
compiler specific options
undefines preprocessor symbol
generate a warning message
Meaning
Table 3.6: Preprocessor directives
#
#assert SIZE > 10
#asm
movlw FFh
#endasm
#define SIZE 5
#define FLAG
#define add(a,b) ((a)+(b))
see #ifdef
see #if
see #asm
see #if
#error Size too big
#if SIZE < 10
c = process(10)
#else
skip();
#endif
#ifdef FLAG
do_loop();
#elif SIZE == 5
skip_loop();
#endif
#ifndef FLAG
jump();
#endif
#include <stdio.h>
#include "project.h"
#line 3 final
#20
Refer to section
#undef FLAG
#warning Length not set
Example
3.12.3
Preprocessing
71

Related parts for SW500009