Related articles |
---|
profile shared libraries with gcc and gprof k.xu@caa.de (2001-12-15) |
Re: profile shared libraries with gcc and gprof axel@dtone.org (Axel Kittenberger) (2001-12-19) |
Re: profile shared libraries with gcc and gprof vincent.stehle@stepmind.com (Vincent =?ISO-8859-1?Q?Stehl=E9?=) (2001-12-20) |
From: | Axel Kittenberger <axel@dtone.org> |
Newsgroups: | comp.compilers |
Date: | 19 Dec 2001 23:58:12 -0500 |
Organization: | Kabelsignal AG Broadband Service |
References: | 01-12-072 |
Keywords: | GCC |
Posted-Date: | 19 Dec 2001 23:58:12 EST |
xukg wrote:
> I use gcc (with option -p) to compile my program which uses shared
> libraries. But i cannot find calls of dynamic libraries in my profile.
> I generate my shared libraries (xxx.so) with the option -p too.
One cheap option is to simply link the libraries static into your
application with the ld option --static.
If you're using glibc as your c library you can export the
variable LD_PROFILE=[libraryname] to tell the dynamic linker to profile the
shared library with this name...
Best see the ld.so man pages, like i.e.
http://www.cs.princeton.edu/cgi-bin/man2html?ld.so.1:1
- Axel Kittenberger
Return to the
comp.compilers page.
Search the
comp.compilers archives again.