SW500008 Microchip Technology, SW500008 Datasheet - Page 52

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
Files
The value y is a 3-bit bitmask which represents the combinations of errata workarounds and build
characteristics applied to this library. An explanation of the bits within the y bitmask is available in
Table 3.4.
3.3.5 Runtime startup Modules
A C program requires certain objects to be initialised and the processor to be in a particular state
before it can begin execution of its function main(). It is the job of the runtime startup code to
perform these tasks.
a user’s program. Even if a user’s program does not need all aspects of the runtime startup code,
redundant code is linked in which, albeit not harmful, takes up memory and slows execution. For
example, if a program does not use any uninitialized variables, then no routine is required to clear
the bss psects.
exactly what runtime startup code is required and links this into the program automatically. It does
this by performing an additional link step which does not produce any usable output, but which can
be used to determine the requirements of the program. From this information PICC18 then “writes”
the assembler code which will perform the runtime startup. This code is stored into a file which can
then be assembled and linked into the remainder of the program in the usual way.
files associated with this process are deleted after they have been used. If required, the assembler
file which contains the runtime startup code can be kept after compilation and linking by using the
driver option --RUNTIME=default,+keep. The residual file 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. These are described
in the sections below.
38
Bit index
Traditionally, runtime startup code is a generic, precompiled routine which is always linked into
HI-TECH PICC-18 STD differs from other compilers by using a novel method to determine
Since the runtime startup code is generated automatically on every compilation, the generated
This is an automatic process which does not require any user interaction, however some aspects
0
1
2
Library implements additional NOPs when reading beyond program space at -40C
Library implements 4000h boundary errata workaround
Library uses 24-bit pointers to code space
Table 3.4: Program Memory Errata Bitmask
Errata and build characteristic
C Language Features

Related parts for SW500008