SW500011 Microchip Technology, SW500011 Datasheet - Page 58

HI-TECH X PRO FOR PIC32

SW500011

Manufacturer Part Number
SW500011
Description
HI-TECH X PRO FOR PIC32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheet

Specifications of SW500011

No. Of User Licenses
1
Supported Families
PIC32
Core Architecture
PIC
Supported Hosts
Windows XP, Vista, Linux, Mac OS X
Software Edition
Professional
Kit Contents
Software And Docs
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
032
778-1007
778-1007
PICC32 Driver Option Descriptions
option is omitted, the preprocessed source for printf will be retained in the file doprnt.pre.
2.6.45 --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:
PICC32 will produce test.pro containing the following declarations which may then be edited as
necessary:
58
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)
{
}
PICC32 --CHIP=32MX360F512L --PROTO test.c
/* Prototypes from test.c */
/* extern functions - include these in a header file */
#if
extern int add(int *, int *);
arg1;
arg2;
return *arg1 + *arg2;
while (count--)
putchar(’\n’);
PROTOTYPES
printf("%d ", *list++);
PICC32 Command-line Driver

Related parts for SW500011