SW500010 Microchip Technology, SW500010 Datasheet - Page 107

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
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.11.3
Preprocessing
107

Related parts for SW500010