SW006012 Microchip Technology, SW006012 Datasheet - Page 61

C COMPILER FOR DSPIC30F FAMILY

SW006012

Manufacturer Part Number
SW006012
Description
C COMPILER FOR DSPIC30F FAMILY
Manufacturer
Microchip Technology
Type
MPLAB® C30 Compilerr
Series
PIC24 & DsPICr
Datasheets

Specifications of SW006012

Supported Families
PIC24, DsPIC30F And DsPIC33F
Core Architecture
PIC, DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Tool Type
Compiler
Processor Series
PIC24, dsPIC
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
dsPIC30F
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2007 Microchip Technology Inc.
If any of the options
should not be used as arguments.
TABLE 3-13:
-Ldir
-llibrary
-nodefaultlibs
-nostdlib
-s
-u symbol
-Wl,option
-Xlinker option Pass option as an option to the linker. You can use this to supply
Option
LINKING OPTIONS
-c
Add directory dir to the list of directories to be searched for libraries
specified by the command-line option -l.
Search the library named library when linking.
The linker searches a standard list of directories for the library, which is
actually a file named liblibrary.a. The linker then uses this file as if
it had been specified precisely by name.
It makes a difference where in the command you write this option; the
linker processes libraries and object files in the order they are specified.
Thus, foo.o -lz bar.o searches library z after file foo.o but before
bar.o. If bar.o refers to functions in libz.a, those functions may not
be loaded.
The directories searched include several standard system directories,
plus any that you specify with -L.
Normally the files found this way are library files (archive files whose
members are object files). The linker handles an archive file by scanning
through it for members which define symbols that have so far been
referenced but not defined. But if the file that is found is an ordinary
object file, it is linked in the usual fashion. The only difference between
using an -l option (e.g., -lmylib) and specifying a file name (e.g.,
libmylib.a) is that -l searches several directories, as specified.
By default the linker is directed to search:
<install-path>\lib
for libraries specified with the -l option. For a compiler installed into the
default location, this would be:
c:\Program Files\Microchip\MPLAB C30\lib
This behavior can be overridden using the environment variables
defined in Section 3.6 “Environment Variables”.
Do not use the standard system libraries when linking. Only the libraries
you specify will be passed to the linker. The compiler may generate calls
to memcmp, memset and memcpy. These entries are usually resolved by
entries in the standard compiler libraries. These entry points should be
supplied through some other mechanism when this option is specified.
Do not use the standard system startup files or libraries when linking. No
startup files and only the libraries you specify will be passed to the
linker. The compiler may generate calls to memcmp, memset and
memcpy. These entries are usually resolved by entries in standard
compiler libraries. These entry points should be supplied through some
other mechanism when this option is specified.
Remove all symbol table and relocation information from the
executable.
Pretend symbol is undefined to force linking of library modules to
define the symbol. It is legitimate to use -u multiple times with different
symbols to force loading of additional library modules.
Pass option as an option to the linker. If option contains commas, it
is split into multiple options at the commas.
system-specific linker options that MPLAB C30 does not know how to
recognize.
,
-S
Using MPLAB C30 C Compiler
or
-E
are used, the linker is not run and object file names
Definition
DS51284F-page 55

Related parts for SW006012