SW006013 Microchip Technology, SW006013 Datasheet - Page 47

MPLAB C Compiler For DsPIC DSCs

SW006013

Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet

Specifications of SW006013

Supported Families
DsPIC30F, DsPIC33F
Core Architecture
DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
DsPIC30F And DsPIC33F
Tool Function
Compiler
Tool Type
Compiler
Processor Series
dsPIC
Lead Free Status / RoHS Status
na
For Use With/related Products
dSPIC DSCs
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
2.13
© 2008 Microchip Technology Inc.
<STDIO.H> INPUT AND OUTPUT
The header file
to perform input and output operations on files and streams. When a file is opened it is
associated with a stream. A stream is a pipeline for the flow of data into and out of files.
Because different systems use different properties, the stream provides more uniform
properties to allow reading and writing of the files.
Streams can be text streams or binary streams. Text streams consist of a sequence of
characters divided into lines. Each line is terminated with a newline (‘
characters may be altered in their internal representation, particularly in regards to line
endings. Binary streams consist of sequences of bytes of information. The bytes trans-
mitted to the binary stream are not altered. There is no concept of lines - the file is just
a series of bytes.
At start-up three streams are automatically opened:
provides a stream for standard input,
dard error. Additional streams may be created with the
the different types of file access that are permitted. These access types are used by
fopen
The type
such things as error indicators, end-of-file indicators, file position indicators, and other
internal status information needed to control a stream. Many functions in the
FILE
There are three types of buffering: unbuffered, line buffered and fully buffered. Unbuf-
fered means a character or byte is transferred one at a time. Line buffered collects and
transfers an entire line at a time (i.e., the newline character indicates the end of a line).
Fully buffered allows blocks of an arbitrary size to be transmitted. The functions
and
The
formats, or scan formats, are used for reading data. Their descriptions can be found
under
formats, are used for writing data. Their descriptions can be found under
These print formats are also used by
vsprintf
2.13.1
Certain compiler options may affect how standard I/O performs. In an effort to provide
a more tailored version of the formatted I/O routines, the tool chain may convert a call
to a
below:
•The
and other functions that use the input output formats to an integer only variant.
The functionality is the same as that of the C standard forms, minus the support
for floating-point output.
will take place.
tion call if it can be proven that an I/O function will never be presented with a
floating-point conversion.
will assume that non-constant format strings or otherwise unknown format
strings will not contain a floating-point format. In the event that
used with a floating-point format, the format letter will appear as literal text and
its corresponding argument will not be consumed.
setvbuf
printf
stdio.h
as an argument.
scanf
and
-msmart-io
FILE
.
Compiler Options
freopen
, but they are also used by
or
control file buffering.
file also contains functions that use input and output formats. The input
is used to store information about each opened file stream. It includes
scanf
stdio.h
-msmart-io=1
.
option, when enabled, will attempt to convert
style function to a different call. The options are summarized
consists of types, macros and functions that provide support
-msmart-io=0
-msmart-io=2
or
stdout
fprintf
-msmart-io
fscanf
disables this feature and no conversion
is standard output and
is more optimistic than the default and
,
and
sprintf
sscanf
(the default) will convert a func-
stdin
fopen
,
,
vfprintf
. The output formats, or print
stdout
function. See
, and
printf
-msmart-io=2
,
\n
stderr
vprintf
’) character. The
DS51456E-page 43
stderr
,
printf
scanf
is the stan-
stdio
fopen
and
setbuf
.
stdin
.
is
use
for

Related parts for SW006013