SW500007 Microchip Technology, SW500007 Datasheet - Page 24

PICC-18 PRO

SW500007

Manufacturer Part Number
SW500007
Description
PICC-18 PRO
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500007

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Professional
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
015P
778-1002
778-1002
PICC18 Compiler Options
will include source-level debugging information for test.c only because module1.c was not com-
piled with the -G option.
2.4.6 -Ipath: Include Search Path
Use -I to specify an additional directory to use when searching for header files which have been
included using the #include directive. The -I option can be used more than once if multiple
directories are to be searched. The default include directory containing all standard header files
is always searched even if no -I option is present, and will be searched after any user-specified
directories have been searched. For example:
will search the directories c:\include and d:\myapp\include for any header files included into
the source code, then search the default include directory (the include directory where the compiler
was installed).
2.4.7 -Llibrary: Scan Library
The -L option is used to specify additional libraries which are to be scanned by the linker. Libraries
specified using the -L option are scanned before the standard C library, allowing additional versions
of standard library functions to be accessed.
ing the build configuration and applicable errata workarounds; and the suffix .lib are added. Thus
the option -LL when compiling for a 18F452 will, for example, scan the library pic86l-l.lib and
the option -Lxx will scan a library called pic86c-xx.lib. All libraries must be located in the LIB
subdirectory of the compiler installation directory. As indicated, the argument to the -L option is not
a complete library filename.
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.4.8 -L-option: Adjust Linker Options Directly
The -L option can also be used to specify an extra “-” option which will be passed directly to the
linker by PICC18. If -L is followed immediately by any text starting with a dash character “-”, the
text will be passed directly to the linker without being interpreted by PICC18. For example, if the
option -L-FOO is specified, the -FOO option will be passed on to the linker when it is invoked.
10
The --IDE option will typically enable the -G option.
The argument to -L is a library keyword to which the prefix pic8; numbers and letters represent-
If you wish the linker to scan libraries whose names do not follow the above naming convention
PICC18 --CHIP=18F242 -C -Ic:\include -Id:\myapp\include test.c
PICC-18 Command-line Driver

Related parts for SW500007