home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 1.ddi / DOC / README.PRF < prev    next >
Encoding:
Text File  |  1992-04-22  |  2.1 KB  |  81 lines

  1.      Copyright (C) 1990-1992 MetaWare Incorporated.  All Rights Reserved.
  2.  
  3.                              MetaWare Profiler
  4.                                Version 1.103
  5.                         for Extended DOS 80386/486
  6.                                  April 1992
  7.  
  8.  
  9. Table of Contents
  10. -----------------
  11.  
  12. 1.  Release notes
  13. 2.  Compiling for profiling
  14. 3.  Linking for profiling
  15. 4.  Invoking the profiler manually
  16. 5.  Known problems
  17.  
  18.  
  19. 1.  Release notes
  20. -----------------
  21.  
  22. See the Profiler User's Guide for directions for using the MetaWare Profiler.
  23. The profiler is a protected-mode program; it can be run only on an 80386 or
  24. 80486 machine.
  25.  
  26. The MetaWare Profiler now works under ERGO Computing's OS/386, version 2.1.06
  27. or later.
  28.  
  29.  
  30. 2. Compiling for profiling
  31. --------------------------
  32.  
  33. You can use driver command-line option -p to prepare your program for
  34. profiling, provided main() looks like:
  35.  
  36.    main(int argc, char** argv)
  37.  
  38. If you specify -p and argc and argv are not included, the compiler issues a
  39. warning:
  40.  
  41.    w "sort.c",L39/C6(#554):  main
  42.    |  Couldn't find both argc and argv, so profiler set-up call is omitted.
  43.  
  44. If argc and argv are found, then:
  45.  
  46.    * the compiler prepares your code for profiling
  47.  
  48.    * the driver links with MWPROF.OBJ and passes proper options to the linker.
  49.  
  50. You do not have to specify driver command-line option -g for profiling.
  51.  
  52.  
  53. 3. Linking for profiling
  54. ------------------------
  55.  
  56. When you link for profiling, do not specify the Phar Lap linker option -nomap.
  57. The profiler (PROFILE.EXE) reads the map file for profile information.
  58.  
  59.  
  60. 4.  Invoking the profiler manually
  61. ----------------------------------
  62.  
  63. You can still invoke the profiler manually.  Here is a sample link for the
  64. Phar Lap linker and MetaWare Profiler:
  65.  
  66.    mwprof.obj
  67.    sample.obj
  68.    -lib d:\d386\small\hc386.lib
  69.    -lib d:\d386\small\hc387.lib
  70.    -lib d:\d386\small\hcna.lib
  71.    -realbreak end_real
  72.    -cvsymbols
  73.    -exe sample
  74.  
  75.  
  76. 5. Known problems
  77. -----------------
  78.  
  79. The profiler does not work with Rational Systems' DOS 4G extender, because
  80. Rational's linker does not provide support for the symbols used.
  81.