SW500010 Microchip Technology, SW500010 Datasheet - Page 35

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 Command-line Driver
No aspect of this operation is user-controllable (other than by adjusting the calls to printf), how-
ever the actual printf code used by a program can be observed. If compiling a program using
printf, the driver will leave behind the pre-processed version of doprnt.c. This module, called
doprnt.pre in your working directory, will show the C code that will actually be contained in the
printf routine. As this code has been pre-processed, indentation and comments will have been
stripped out as part of the normal actions taken by the C pre-processor.
2.4 Debugging Information
Several driver options and output files are related to allow development tools, such as HI-TIDE
or MPLAB
following sections.
2.4.1 Output File Formats
The compiler is able to directly produce a number of the output file formats which are used by
common PROM programmers and in-circuit emulators.
and Intel HEX output. If no output filename or type is specified, PICC will produce a Bytecraft
COD, Microchip COFF and Intel HEX file with the same base name as the first source or object file
specified on the command line. Table
The default behaviour of the PICC command is to produce Bytecraft COD, Microchip COFF
the compiler cannot determine the exact format string, but can see that there are no
additional arguments to printf following the format string represented by mes.
Thus, the only valid format strings will not contain placeholders that print any
arguments, and a minimal version of printf will be generated and compiled. If the
above code was rewritten as:
the compiler will detect that the argument being printed has double type, thus the only
valid placeholders would be those that print floating point types, for example %e, %f
and %g.
void my_print(const char * mes) {
}
void my_print(const char * mes, double val) {
}
R
, to perform source-level debugging of the output code. These are described in the
printf(mes);
printf(mes, val);
2.12
shows the output format options available with HI-TECH
Debugging Information
35
TM

Related parts for SW500010