Intel i960 User Manual page 165

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

Advertisement

4
4-12
i960 Processor Compiler User's Guide
Building an Instrumented Program
You can create a profile-instrumented program either of two ways:
compile source modules with the
using a
-gcdm,subst=+fprof
When compiling with
working directory contain profile-instrumented code.
When compiling with
instrumented object files reside in the PDB, not in your work space.
These approaches both yield the same instrumented version of
However, compiling with the
only for collecting a profile. If you compile with the
not want a profile, you must then use substitutions to replace every
instrumented module in
the
option.
f
prof
Linking Using an +fprof Substitution
The example makefile requires no changes to accommodate this method;
just use:
make SUBST=fprof
No files are recompiled unless source files have changed; only the
following link command is issued:
ic960 -o prog -Ttarg -fdb -gcdm,subst=*:*+fprof,iprof=
fee.o foo.o
This command causes substitution modules with profile instrumentation to
be compiled in the PDB to replace the original modules
in the linked program
prog
NOTE. Profiles collected with
self-contained profiles before linking.
option, or link object modules
-fprof
substitution.
, the object files generated in your
-fprof
-gcdm,subst=+fprof
option creates object modules useful
fprof
, or you must recompile the modules without
prog
.
substitutions must be made into
+fprof
, the profile-
.
prog
option and do
fprof
and
fee.o
foo.o

Advertisement

Table of Contents
loading

Table of Contents