SW500007 Microchip Technology, SW500007 Datasheet - Page 37

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
PICC-18 Command-line Driver
2.4.43 --PRE: Produce Preprocessed Source Code
The --PRE option is used to generate preprocessed C source files with an extension .pre. This may
be useful to ensure that preprocessor macros have expanded to what you think they should. Use
of this option can also create C source files which do not require any separate header files. This is
useful when sending files for technical support.
2.4.44 --PROTO: Generate Prototypes
The --PROTO option is used to generate .pro files containing both ANSI and K&R style function
declarations for all functions within the specified source files. Each .pro file produced will have
the same base name as the corresponding source file. Prototype files contain both ANSI C-style
prototypes and old-style C function declarations within conditional compilation blocks.
included in all the source files comprising a project. The .pro files may also contain static decla-
rations for functions which are local to a source file. These static declarations should be edited into
the start of the source file. To demonstrate the operation of the --PROTO option, enter the following
source code as file test.c:
If compiled with the command:
PICC18 will produce test.pro containing the following declarations which may then be edited as
necessary:
The extern declarations from each .pro file should be edited into a global header file which is
#include <stdio.h>
add(arg1, arg2)
int *
int *
{
}
void printlist(int * list, int count)
{
}
PICC18 --CHIP=18F242 --PROTO test.c
arg1;
arg2;
return *arg1 + *arg2;
while (count--)
putchar(’\n’);
printf("%d ", *list++);
PICC18 Compiler Options
23

Related parts for SW500007