Creating A Runtime Report With Gmpf960 - Intel i960 User Manual

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

Advertisement

5

Creating a Runtime Report with gmpf960

Example 5-1 C Code
5-6
i960 Processor Compiler User's Guide
Example
Assume that you have a text-format profile in file
binary-format profile in file
gmpf960 merge these two profiles, writing the results in the binary-format
file
.
default.sum
gmpf960 default.txt -o default.tmp
gmpf960 default.pf default.tmp -spf default.sum
Any mixing of text, raw profile or self-contained profiles is allowed.
You can also use gmpf960 to create a report that shows how many times
the counters for each basic block were incremented. The examples given
below assume that you compile and execute the following source file with
the -fprof option to gather a runtime profile.
/* Source File - t.c */
int i, j;
main()
{
for ( i = 0; i < 10; i++ )
j += i;
return j;
}
To compile the above source file you can use the following command:
gcc960 -Fcoff -fprof -Tmcycx t.c -Z pdb
default.txt
. The following invocations of
default.pf
and a

Advertisement

Table of Contents
loading

Table of Contents