home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Atari / Gnu / gpfbin09.zoo / README.ST < prev   
Text File  |  1991-06-27  |  1KB  |  42 lines

  1.  
  2. Here is gprof for atariST tos gcc. gprof **MUST** be built with
  3. the file st-out.h in this directory, **NOT** the one in the include/
  4. directory.
  5.  
  6. in gprof.c there is consistency check for hist size. that test must
  7. track changes to the constant HIST_SCALE in lib/gmon.c.
  8.  
  9. if you get errors from the linker about gcrt0.o or profil, moncontrol
  10. etc, you need a library update. the minimal PatchLevel of the library
  11. that will support this stuff is PatchLevel 49.
  12.  
  13. if you have utilities at Patchlevel 16 or better, it is recommended that
  14. you use long symbols (GST format symbols) by specifying the '-G' option
  15. to gcc. gprof Patchlevel 3 or better support long symbols.
  16.  
  17. how to profile: say foo.c
  18.  
  19.     gcc -G -O -o foo.tos foo.c -pg
  20.       (utilities Patchlevel 16 or better required for -G)
  21.   or
  22.     gcc -O -o foo.tos foo.c -pg
  23.  
  24. run foo.tos
  25.  
  26.     it will produce gmon.out.
  27.  
  28. run
  29.     gprof foo.tos
  30. or
  31.     gprof foo.tos >results
  32.  
  33. as simple as that!
  34.  
  35. please send your comments to me,
  36. enjoy,
  37. --
  38. bang:   uunet!cadence!bammi            jwahar r. bammi
  39. domain: bammi@cadence.com
  40. GEnie:    J.Bammi
  41. CIS:    71515,155
  42.