home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Club Elmshorn Atari PD
/
CCE_PD.iso
/
pc
/
0400
/
CCE_0423.ZIP
/
CCE_0423.PD
/
GPROF08B.ZOO
/
README.ST
< prev
next >
Wrap
Text File
|
1991-06-29
|
1KB
|
42 lines
Here is gprof for atariST tos gcc. gprof **MUST** be built with
the file st-out.h in this directory, **NOT** the one in the include/
directory.
in gprof.c there is consistency check for hist size. that test must
track changes to the constant HIST_SCALE in lib/gmon.c.
if you get errors from the linker about gcrt0.o or profil, moncontrol
etc, you need a library update. the minimal PatchLevel of the library
that will support this stuff is PatchLevel 49.
if you have utilities at Patchlevel 16 or better, it is recommended that
you use long symbols (GST format symbols) by specifying the '-G' option
to gcc. gprof Patchlevel 3 or better support long symbols.
how to profile: say foo.c
gcc -G -O -o foo.tos foo.c -pg
(utilities Patchlevel 16 or better required for -G)
or
gcc -O -o foo.tos foo.c -pg
run foo.tos
it will produce gmon.out.
run
gprof foo.tos
or
gprof foo.tos >results
as simple as that!
please send your comments to me,
enjoy,
--
bang: uunet!cadence!bammi jwahar r. bammi
domain: bammi@cadence.com
GEnie: J.Bammi
CIS: 71515,155