EasyManua.ls Logo

Intel i960 - Page 22

Intel i960
347 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...
i960 Processor Compiler User's Guide
2-4
2
Preprocessing a Source File
To preprocess a source file, use the command:
gcc960 -E t1.c
-E
informs the compiler to preprocess the source
file and echo the output to stdout.
Generating Assembly Code
To generate assembly code for the i960 CA architecture, use the following
command.
gcc960 -S -ACA t1.c
-S
instructs the compiler to generate assembly code.
-A specifies the i960 CA architecture.
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
instructs the compiler to generate debug
information.
-c instructs the compiler to generate an object file.
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 instructs the compiler that you are targeting a
Cyclone i960 Cx evaluation board.

Table of Contents

Related product manuals