SW500010 Microchip Technology, SW500010 Datasheet - Page 58

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
2.6.45 --PASS1: Compile to P-code
The --PASS1 option is used to generate a p-code intermediate files (.p1 file) from the parser, then
stop compilation. Such a file needs to be generated if creating a p-code library file.
2.6.46 --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.
option. The source for this function is customised by the compiler, but only after the code generator
has scanned the project for printf usage. Thus, as the –PRE option stops compilation after the
preprocessor stage, the code generator will not execute and no printf code will be processed. If this
option is omitted, the preprocessed source for printf will be retained in the file doprnt.pre.
option. The source for this function is customised by the compiler, but only after the code generator
has scanned the project for printf usage. Thus, as the –PRE option stops compilation after the
preprocessor stage, the code generator will not execute and no printf code will be processed. If this
option is omitted, the preprocessed source for printf will be retained in the file doprnt.pre.
2.6.47 --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.
is included in all the source files comprising a project. The .pro files may also contain static
declarations 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:
58
If you wish to see the preprocessed source for the printf family of functions, do not use this
If you wish to see the preprocessed source for the printf family of functions, do not use this
The extern declarations from each .pro file should be edited into a global header file which
#include <stdio.h>
add(arg1, arg2)
int *
int *
{
arg1;
arg2;
return * arg1 + * arg2;
PICC Command-line Driver

Related parts for SW500010