EasyManua.ls Logo

Texas Instruments TMS34010

Texas Instruments TMS34010
128 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Invocation
and
Operation
of
the
TMS34010
C
Compiler
3.1
The
TMS34010
C
Preprocessor
(GSPCPP)
The C preprocessor, GSPCPP,
is
invoked
as
the first
pass
of
the TMS3401 0
C
compiler. GSPCPP handles macro definitions and substitutions, #include
files, line number directives, and conditional compilation. The preprocessor
requires the original
C source file
as
input and produces
as
output
a modified
source
file suitable for input
to
GSPCC.
This preprocessor
is
the
same
preprocessor described in
The
C Programming
Language,
by
B.
Kernighan and
D.
Ritchie (referred to hereafter
as
K&R).
Additional information
can
be
found in that book.
3.1.1
Invoking
GSPCPP
The preprocessor begins execution when the
following
command
is
entered:
where:
input
file
output
file
options
.9.2.I2.£E£
[input
file]
[output
file]
[option's]
is
the name
of
the C source file used
as
the input file.
If
no
extension
is
given,
an
extension
of
.c
is
assumed.
If
no input
file
is
given, a prompt appears.
is
the name
of
the file
output
by GSPCPP. The
output
file
can
be
omitted, in
which
case
the name given
to
the
out-
put-file defaults
to
the
input-file
name
with
an
extension
of
.cpp.
lists any
of
the available GSPCPP options (see Section
3.1.3). The options parameter can appear anywhere in the
invocation
line and can be used multiple times.
3.1.2
GSPCPP
Options
3-2
GSPCPP's options
are
case-sensitive,
single-letter fields prefixed
by
hy-
phens
(-).
Some options have additional fields,
which
immediately
follow
the
option letter
with
no
intervening
spaces. The following list describes
op-
tions available; each option
is
uppercase.
-p
Tells the preprocessor
not
to produce the line number and
file :i3-P information used by the compiler. The compila-
tion is otherwise the same
as
if
this information were
produced.
-C
Copies comments to the
output
file. Otherwise, GSPCPP
strips comments.
-D<name>=def
Defines name
as
if
the
following
line appeared at the
top
of
the input file:
#define
name
def
The symbol name is then recognized for
#if
and
#ifdef
statements,
without
having been explicitly defined in the
text
of
the program.

Table of Contents

Other manuals for Texas Instruments TMS34010

Related product manuals