SW500008 Microchip Technology, SW500008 Datasheet - Page 95

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
C Language Features
the table look-up style switch method. This is mostly useful where timing is an issue for switch
statements (i.e.: state machines).
default behaviour.
3.13 Linking Programs
The compiler will automatically invoke the linker unless requested to stop after producing assembler
code (PICC18 -S option) or object code (PICC18 -C option).
a different output format.
address used by, and the total sizes of, all the psects which are used by the compiled code.
each memory area of the device. This can be used as a guide to the available space left in the device.
obtained by using the PICC18 --SUMMARY=psect option. Alternately, generate a map file for the
complete memory specification of the program.
3.13.1 Replacing Library Modules
Although HI-TECH C comes with a librarian (LIBR) which allows you to unpack library files and
replace modules with your own modified versions, you can easily replace a library module that is
linked into your program without having to do this. If you have a source file which contains an
alternate implementation of a library routine, by adding this source file to the command-line list of
source files, the routine provided will be used in preference to the equivalent routine in the library.
Specifying the direct option to the #pragma switch directive forces the compiler to generate
This pragma affects all code generated onward. The auto option may be used to revert to the
HI-TECH C, by default, generates Intel HEX output files. Use the --OUTPUT= option to specify
After linking, the compiler will automatically generate a memory usage map which shows the
The program statistics shown after the summary provides more concise information based on
More detailed memory usage information, listed in ascending order of individual psects, may be
This method works due to the way the linker scans source and library files. When trying
to resolve a symbol (in this instance a function name) the linker first scans all source
modules for the definition. Only if it cannot resolve the symbol in these files does it
then search the library files. Even though the symbol may be defined in a source file
and a library file, the linker will not search the libraries and no multiply defined symbol
error will result. This is not true if a symbol is defined twice in source files.
Linking Programs
81

Related parts for SW500008