Intel i960 User Manual page 164

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

Advertisement

Program-wide Analysis and Optimization
This causes the object modules in the program to be compiled and then
linked with the options in the
following commands:
ic960 -c -Ttarg -fdb -gcdm,subst=*:*+O5,iprof= fee.c
ic960 -c -Ttarg -fdb -gcdm,subst=*:*+O5,iprof= foo.c
ic960 -o prog -Ttarg -fdb -gcdm,subst=*:*+O5,iprof=
fee.o foo.o
The link command causes substitution modules at optimization level
be built in the PDB to replace the original modules
the program load module
indicates that you are not using a profile, which is the default behavior.
Building for Debugging without Program-wide Optimizations
If logic problems exist in the program, you can build a debug version of
by invoking the make tool with:
prog
make SUBST=g+O0
This causes the make tool to issue only the following link command
(assuming the sources haven't changed):
ic960 -o prog -Ttarg -fdb -gcdm,subst=*:*+g+O0,iprof=
fee.o foo.o
The link command causes substitution modules with no optimization and
full debug information to be built in the PDB to replace the original
modules
and
fee.o
foo.o
After debugging the problem and then fixing it by changing one of the
source files, you can reissue the
program-wide optimized version of
recompiles the changed source file and then links the program with the
substitution specification, as before. This causes the global decision
making and optimization step to recompile the previous
modules as needed in the PDB, and those modules are then used in the
program load module
prog
macro. The make tool then issues the
FLAGS
. The
option without a filename
prog
iprof=
in the program load module
make SUBST=O5
. Invoking the make tool
prog
.
to
O5
and
in
fee.o
foo.o
.
prog
command to get another
O5
substitution
O5
4
4-11

Advertisement

Table of Contents
loading

Table of Contents