SW500008 Microchip Technology, SW500008 Datasheet - Page 116

PICC-18 STD

SW500008

Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500008

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
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
015
778-1001
778-1001
HI-TECH C Assembly Language
4.3.8.14 FNCONF
The FNCONF directive is used to supply the linker with configuration information for a call graph.
FNCONF is written as follows:
where psect is the psect containing the call graph, auto is the prefix on all auto variable symbol names
and args is the prefix on all function argument symbol names. This directive normally appears in
only one place: the runtime startup code used by C compiler generated code. For the HI-TECH
PICC-18 Compiler the startup routine will include the directive:
telling the linker that the call graph is in the rbss psect, auto variable blocks start with ?a and function
argument blocks start with ?.
4.3.8.15 FNINDIR
This directive tells the linker that a function performs an indirect call to another function with a
particular signature (see the SIGNAT directive). The linker must assume worst case that the function
could call any other function which has the same signature and has had its address taken (see the
FNADDR directive). For example, if a function called fred() performs an indirect call to a function
with signature 8249, the compiler will produce the directive:
4.3.8.16 FNSIZE
The FNSIZE directive informs the linker of the size of the local variable and argument area associ-
ated with a function. These values are used by the linker when building the call graph and assigning
addresses to the variable and argument areas. This directive takes the form:
The named function has a local variable area and argument area as specified, for example
means the function fred() has 10 bytes of local variables and 5 bytes of arguments. The function
name arguments to any of the call graph associated directives may be local or global. Local functions
are of course defined in the current module, but most be used in the call graph construction in the
same manner as global names.
102
FNCONF psect,auto,args
FNCONF rbss,?a,?
FNINDIR _fred,8249
FNSIZE func,local,args
FNSIZE _fred, 10, 5
Macro Assembler

Related parts for SW500008