SW500010 Microchip Technology, SW500010 Datasheet - Page 99

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
which will be placed at the interrupt vector. Any registers or objects to be saved are done so to areas
of memory especially reserved for this purpose.
processor for which the code is written does not have common memory, a byte is reserved in all
RAM banks for the storage location for W register.
ordinary auto variable.
3.9.1.4 Context Restoration
Any objects saved by the compiler are automatically restored before the interrupt function re-
turns.
3.9.2 Function Duplication
It is assumed by the compiler that an interrupt may occur at any time. As functions are not reentrant,
if a user-defined function appears to be called by an interrupt function and by main-line code,
or another interrupt function, this has the potential to lead to code failure.
function called from more than one call tree in the program’s call graph. A duplicate will be made
for each call tree from which the function is called. The original and any duplicates contribute to the
output.
labels within the functions, and local variables defined in the functions.The name consists of the
usual name prefixed with in, where n is the level number of the interrupt function. The function
called from main-line code will retain its original name.
If context saving is required, this is performed by code placed in to a psect called intentry
If the W register is to be saved, it is stored to memory reserved in the common RAM. If the
Other registers to be saved are done so in the interrupt function’s auto area, and thus look like
HI-TECH C PRO for the PIC10/12/16 MCU Family has a feature which will duplicate any
These duplicate functions will have unique names for the assembly function labels themselves,
T
In a program the function main calls a user-defined function called input. This func-
tion is also called by an interrupt function. The output will contain the code cor-
responding to the original function, called input, as well as the code corresponding
to a duplicate of this, called i1_input. If there was a compiler-generated local la-
bel placed in the generated assembly code call l26, the Assembly associated with the
duplicate function will contain the label i1l26. An auto variable defined in input
would be referred to by the symbol ??_input in the assembly code generated; in the
duplicate this would become ??i1_input. The assembly code for both functions will
appear in the assembly list file, and all symbols associated with these functions will ap-
pear in the map file in the usual way. The call graph, in the map file, will show the calls
UT RIAL
Interrupt Handling in C
99

Related parts for SW500010