[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
profiling support (files)
From: |
Marcus Brinkmann |
Subject: |
profiling support (files) |
Date: |
Tue, 15 May 2001 01:18:21 +0200 |
User-agent: |
Mutt/1.3.15i |
Hi,
two attachments: 1. gcrt0.o (just copy into /lib).
2. specs (just copy into /lib/gcc-lib/i386-gnu/2.95.4/)
The path to the gcc files depends on the version number.
Usage:
To profile the program only:
$ gcc -o main main.c -pg
$ ./main
$ gprof main gmon.out
To profile the program and the C library:
$ gcc -o main main.c -profile
$ ./main
$ gprof main gmon.out
The specs file implement the following option combinations:
Notes: -shared overrides (and prevents) profiling options.
-profile forces to link the profiling C library statically
-pg/-p does link to the normal C library (dynamically or statically)
static shared pg p profile =>lib
Y/N N Y/N Y/N N -lc
N Y Y/N Y/N Y/N -lc
Y/N N Y/N Y/N Y -lc_p
static shared pg p profile =>startfile
N N N N N crt1.o crti.o crtbegin.o
Y N N N N crt0.o crti.o crtbegin.o
N Y Y/N Y/N Y/N crti.o crtbeginS.o
N N Y/N Y/N Y gcrt0.o crti.o crtbegin.o
Y N Y/N Y/N Y/N gcrt0.o crti.o crtbegin.o
^^^^^^^^^^^^^^^^^^^ at least one Y
N N Y/N Y/N N gcrt1.o crti.o crtbegin.o
^^^^^^^^^^^ at least one Y
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann GNU http://www.gnu.org marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de
gcrt0.o
Description: application/object
specs
Description: Text document
- profiling support (files),
Marcus Brinkmann <=