SW500010 Microchip Technology, SW500010 Datasheet - Page 46

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 Driver Option Descriptions
or whose locations are not in the LIB subdirectory, simply include the libraries’ names on the com-
mand line along with your source files. Alternatively, the linker may be invoked directly allowing
the user to manually specify all the libraries to be scanned.
2.6.7 -L-option: Adjust Linker Options Directly
The -L driver option can also be used to specify an option which will be passed directly to the
linker. If -L is followed immediately by text starting with a dash character “-”, the text will be
passed directly to the linker without being interpreted by PICC. For example, if the option -L-FOO
is specified, the -FOO option will be passed on to the linker. The linker will then process this option,
when, and if, it is invoked, and perform the appropriate function, or issue an error if the option is
invalid.
The -L option is especially useful when linking code which contains non-standard program sections
(or psects), as may be the case if the program contains assembly code which contains user-defined
psects. Without this -L option, it would be necessary to invoke the linker manually to allow the
linker options to be adjusted.
rather than by name. This would be passed to PICC as the option -L-N.
character after the -L up to the first = character matches first part of a default linker option, then that
default linker option is replaced by the option specified by the -L.
46
If you wish the linker to scan libraries whose names do not follow the above naming convention
One commonly used linker option is -N, which sorts the symbol table in the map file by address,
This option can also be used to replace default linker options: If the string starting from the first
Take care with command-line options. The linker cannot interpret driver options; sim-
ilarly the command-line driver cannot interpret linker options. In most situations, it is
always the command-line driver, PICC, that is being executed. If you need to add alter-
nate settings in the linker tab in an MPLAB Build options... dialogue, these are
the driver options (not linker options), but which are used by the driver to generate the
appropriate linker options during the linking process.
T
R
used, but the programmer needs to ensure that this psect is positioned above the address
800h. This can be achieved by adjusting the default linker option that positions this
psect. First, a map file is generated to determine how this psect is normally allocated
memory. The Linker command line: in the map file indicates that this psect is
UT RIAL
EPLACING DEFAULT LINKER OPTIONS
In a particular project, the psect entry is
PICC Command-line Driver

Related parts for SW500010