SW500011 Microchip Technology, SW500011 Datasheet - Page 105

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
C Language Features
each memory area of the device. This can be used as a guide to the available space left in the device.
be obtained by using the PICC32 --SUMMARY=psect option. Generate a map file for the complete
memory specification of the program.
3.12.1 Replacing Library Modules
Although HI-TECH C comes with a librarian (LIBR) which allows you to unpack a 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 add the source file which contains the
library routine you wish to replace on the command-line list of source files then the routine will
replace the routine in the library file with the same name.
For example, if you wished to make changes to the library function max() which resides in the file
max.c in the SOURCES directory, you could make a copy of this source file, make the appropriate
changes and then compile and use it as follows.
The code for max() in max.c will be linked into the program rather than the max() function con-
tained in the standard libraries. Note, that if you replace an assembler module, you may need the
-P option to preprocess assembler files as the library assembler files often contain C preprocessor
directives.
3.12.2 Signature Checking
The compiler automatically produces signatures for all functions. A signature is a 16-bit value
computed from a combination of the function’s return data type, the number of its parameters and
other information affecting the calling sequence for the function. This signature is output in the
object code of any function referencing or defining the function.
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
This method works due to the way the linker scans source and library file. 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.
PICC32 --chip=32MX360F512L main.c init.c max.c
Linking Programs
105

Related parts for SW500011