SW500007 Microchip Technology, SW500007 Datasheet - Page 88
SW500007
Manufacturer Part Number
SW500007
Description
PICC-18 PRO
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Specifications of SW500007
Supported Families
PIC18
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015P
778-1002
778-1002
778-1002
778-1002
- Current page: 88 of 486
- Download datasheet (4Mb)
Preprocessing
74
#
#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.10: Preprocessor directives
#
#assert SIZE > 10
#asm
mov r0, r1h
#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
See section
#undef FLAG
#warning Length not set
3.12.3
Example
C Language Features
Related parts for SW500007
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: