home *** CD-ROM | disk | FTP | other *** search
- Copyright (C) 1990-1992 MetaWare Incorporated. All Rights Reserved.
-
- MetaWare Profiler
- Version 1.103
- for Extended DOS 80386/486
- April 1992
-
-
- Table of Contents
- -----------------
-
- 1. Release notes
- 2. Compiling for profiling
- 3. Linking for profiling
- 4. Invoking the profiler manually
- 5. Known problems
-
-
- 1. Release notes
- -----------------
-
- See the Profiler User's Guide for directions for using the MetaWare Profiler.
- The profiler is a protected-mode program; it can be run only on an 80386 or
- 80486 machine.
-
- The MetaWare Profiler now works under ERGO Computing's OS/386, version 2.1.06
- or later.
-
-
- 2. Compiling for profiling
- --------------------------
-
- You can use driver command-line option -p to prepare your program for
- profiling, provided main() looks like:
-
- main(int argc, char** argv)
-
- If you specify -p and argc and argv are not included, the compiler issues a
- warning:
-
- w "sort.c",L39/C6(#554): main
- | Couldn't find both argc and argv, so profiler set-up call is omitted.
-
- If argc and argv are found, then:
-
- * the compiler prepares your code for profiling
-
- * the driver links with MWPROF.OBJ and passes proper options to the linker.
-
- You do not have to specify driver command-line option -g for profiling.
-
-
- 3. Linking for profiling
- ------------------------
-
- When you link for profiling, do not specify the Phar Lap linker option -nomap.
- The profiler (PROFILE.EXE) reads the map file for profile information.
-
-
- 4. Invoking the profiler manually
- ----------------------------------
-
- You can still invoke the profiler manually. Here is a sample link for the
- Phar Lap linker and MetaWare Profiler:
-
- mwprof.obj
- sample.obj
- -lib d:\d386\small\hc386.lib
- -lib d:\d386\small\hc387.lib
- -lib d:\d386\small\hcna.lib
- -realbreak end_real
- -cvsymbols
- -exe sample
-
-
- 5. Known problems
- -----------------
-
- The profiler does not work with Rational Systems' DOS 4G extender, because
- Rational's linker does not provide support for the symbols used.