Intel i960 User Manual page 22

Processor compiler
Hide thumbs Also See for i960:
Table of Contents

Advertisement

2
2-4
i960 Processor Compiler User's Guide
Preprocessing a Source File
To preprocess a source file, use the command:
gcc960 -E t1.c
-E
Generating Assembly Code
To generate assembly code for the i960 CA architecture, use the following
command.
gcc960 -S -ACA t1.c
-S
-A
Generating an Object Module with Debug Information
To generate a object module with debug information, use the following
command.
gcc960 -c -g -ACA t1.c
-g
-c
Generating an Executable
To generate an absolute module (executable file) for a Cyclone board with
a CA processor, use the following command.
gcc960 -ACA -Tmcycx -g -O t1.c t2.c -o test
The above command compiles the modules t1.c and t2.c and links them
with appropriate libraries to generate an absolute module targeted for a
Cyclone i960 Cx evaluation board.
-Tmcycx
informs the compiler to preprocess the source
file and echo the output to stdout.
instructs the compiler to generate assembly code.
specifies the i960 CA architecture.
instructs the compiler to generate debug
information.
instructs the compiler to generate an object file.
instructs the compiler that you are targeting a
Cyclone i960 Cx evaluation board.

Advertisement

Table of Contents
loading

Table of Contents