SW500007 Microchip Technology, SW500007 Datasheet - Page 73

PICC-18 PRO

SW500007

Manufacturer Part Number
SW500007
Description
PICC-18 PRO
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

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
C Language Features
will exit with the following code:
3.6.3 Memory Models and Usage
The compiler makes few assumptions about memory. With the exception of variables declared using
the @address construct, absolute addresses are not allocated until link time.
the DAT directory). The linker will automatically locate code and const-qualified data into all the
available memory pages and ensure that psects do not straddle any memory boundary.
efficiency.
default memory model is large. The memory model is selected via the -Bmodel command line
option. 2.4.1.
rdata) which are positioned in the access bank. These objects can be efficiently accessed using less
generated code than other objects. All other objects are placed in the PIC18’s banked memory space
in the following manner. Each module can allocate up to one bank of initialized (data psect), and
one bank of uninitialized (bss psect), global or static local objects. Any object that is larger than
one bank in size (e.g. an array) is placed in a separate area (in one of the “big” psects) and this area
can grow across bank boundaries to a size limited only by the available space on the device. Any
The memory used is based upon information in the chipinfo file (which defaults to picc-18.ini in
Temporary variables created and used by the compiler are placed in the access bank to increase
There are two memory models available for HI-TECH PICC-18 STD: small and large. The
In large memory model, all objects qualified near are placed in a “near” psect (e.g. rbss,
struct fred {
};
struct fred return_struct(void){
}
movlw
movwf
movlw
movwf
movlw
movwf
clrf
movlw
global structcopy
call
int ace[4];
struct fred wow;
return wow;
low(?a_return_struct)
fsr0l
high(?a_return_struct)
fsr0h
structret
fsr1l
fsr1h
8
structcopy
Functions
59

Related parts for SW500007