Texas Instruments TMS34010 Reference Manual page 33

C compiler
Hide thumbs Also See for TMS34010:
Table of Contents

Advertisement

Compiler Operation - Compiling and Assembling a Program
"quiet" batch file that produces no messages. In addition, gspq deletes the
intermediate asm file. To invoke the batch files, enter:
gspc input file
or
gspq input file
gspc/gspq name the batch files that invoke the tools.
input file
names a C source file. If you don't specify a filename, the batch
files will prompt you for one. Each batch file expects the input
file to have an extension of .c. Do not specify an extension
for the input file; doing so may harm the input file.
The batch files only accept filenames as input; you cannot pass command
options to the batch file. (If you want to use options, you must modify the
batch files.) The batch files use the input filename to create and name the
intermediate files and the output object file.
The output file has the same
name as the input filename, except the output file has an extension of .obj.
You can specify multiple input files to the batch file; for example,
gspc
filel file2 file ...
Example 3-2 uses the gspc batch file to compile and assemble a C source file
named program. c. (You could also use gspq, but it would not produce the
messages shown in Example 3-2.)
Example 3-2. Method 2 - Using the Batch File
3-12
gspc program
---[program]---
C Pre-Processor,
Version 3.xx
(c) Copyright 1988 Texas Instruments Incorporated
C Compiler,
Version 3.xx
(c) Copyright 1988 Texas Instruments Incorporated
"program.c"
==)
main
C Codegen,
Version 3.xx
(c) Copyright 1988 Texas Instruments Incorporated
"program.c"
==)
main
COFF Assembler,
Version 3.xx
(c) Copyright 1988 Texas Instruments Incorporated
PASS 1
PASS 2
No Errors, No Warnings
Successful Compile of Module
program
Note that the batch files do not create listing files. If you used gspc, you can
create a listing file by invoking the assembler again with the -I option (lower-
case L) and using filename. asm as the input file. For example,
gspc
program
gspa program -1
(You can't do this if you use gspq, because gspq deletes the. asm file.) If
you want to create a listing file each time you use gspc, modify the batch file
so that it invokes the assembler with the -I option.

Advertisement

Table of Contents
loading

Table of Contents