SW500009 Microchip Technology, SW500009 Datasheet - Page 90

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
where register_list is a comma-separated list of registers names. Those registers not listed are
assumed to be unused by the function or routine. The code generator may use the unlisted registers
to hold values across a function call. Hence, if the routine does in fact use these registers, unreliable
program execution may eventuate. The list of registers to be saved will apply to the first interrupt
qualified function defined after the pragma’s usage.
not recognised. A blank list indicates that the specified function or routine uses no registers.
3.12.3.7 The #pragma switch Directive
Normally the compiler decides the code generation method for switch statements which results in
the smallest possible code size. The #pragma switch directive can be used to force the compiler to
use one particular method. The general form of the switch pragma is:
the table look-up style switch method. This is mostly useful where timing is an issue for switch
statements (i.e.: state machines).
default behaviour.
76
The register names are not case sensitive and a warning will be produced if the register name is
#pragma switch switch_type
where switch_type is one of the available switch methods listed in Table .
Specifying the direct option to the #pragma switch directive forces the compiler to generate
This pragma affects all code generated onward. The auto option may be used to revert to the
btemp, btemp+1...btemp+11
fsr
tablreg
w
switch type
auto
direct
Register Name
Table 3.10: Valid Register Names
Table 3.11: switch types
use smallest code size method (default)
table lookup (fixed delay)
btemp temporary area
indirect data pointer
highend processor’s table pointer
the working register
description
Description
C Language Features

Related parts for SW500009