SW500011 Microchip Technology, SW500011 Datasheet - Page 29

HI-TECH X PRO FOR PIC32

SW500011

Manufacturer Part Number
SW500011
Description
HI-TECH X PRO FOR PIC32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheet

Specifications of SW500011

No. Of User Licenses
1
Supported Families
PIC32
Core Architecture
PIC
Supported Hosts
Windows XP, Vista, Linux, Mac OS X
Software Edition
Professional
Kit Contents
Software And Docs
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
032
778-1007
778-1007
PICC32 Command-line Driver
PICC32 then “writes” the assembler code which will perform the startup sequence. This code is
stored into a file which is then assembled and linked into the remainder of the program automatically.
sembler file which contains the runtime startup code can be deleted after compilation by using the
driver option:
If the startup module is kept, it will be called startup.as and will be located in the current working
directory. If you are using an IDE to perform the compilation the destination directory is dictated by
the IDE itself, however you may use the --OUTDIR option to specify an explicit output directory to
the compiler.
of the runtime code can be controlled, if required, using the --RUNTIME option. Section
describes the use of this option, and the following sections describes the functional aspects of the
code contained in this module and its effect on program operation.
the powerup routine feature decsribed later in Section 2.3.3.
2.3.2.1 Initialization of Data psects
One job of the runtime startup code is ensure that any initialized variables contain their initial value
before the program begins execution. Initialized variables are those which are not auto objects and
which are assigned an initial value in their definition, for example input in the following example.
Such initialized objects have two components: their initial value stored in a psect destined for non-
volatile memory (i.e. placed in the HEX file), and space for the variable in RAM psect where the
variable will reside and be accessed during program execution.
location of initialized variables in a psect called rdata. This psect does not contribute to the output
file and consitutes a reservation of space in the RAM once the program is running.
so that the RAM variables will contain their initial values before main() is executed. Each location
in the idata psect is copied to the corresponding place in the rdata psect.
For example:
The runtime startup code is generated automatically on every compilation. If required, the as-
This is an automatic process which does not require any user interaction, however some aspects
If you require any special initialization to be performed immediately after reset, you should use
The actual initial values are placed in a psect called idata. Space is reserved for the runtime
The runtime startup code performs a block copy of the values from the idata to the rdata psect
The block copy of the data psects may be omitted by disabling the init suboption of --RUNTIME.
--RUNTIME=default,-keep
int input = 88;
void main(void) { ...
--RUNTIME=default,-init
Runtime Files
2.6.48
29

Related parts for SW500011