SW500010 Microchip Technology, SW500010 Datasheet - Page 31

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
PICC Command-line Driver
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 described 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 constitutes a reservation of space in the RAM once the program is running.
psect 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:
With this part of the runtime startup code absent, the contents of initialized variables will be unpre-
dictable when the program begins execution. Code relying on variables containing their initial value
will fail.
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
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.50
31

Related parts for SW500010