This is the mail archive of the
mailing list for the newlib project.
Re: profiling variant of newlib
- To: "J. Johnston" <jjohnstn at cygnus dot com>
- Subject: Re: profiling variant of newlib
- From: Richard Black <rjb at dcs dot gla dot ac dot uk>
- Date: Thu, 04 Nov 99 10:43:20 +0000
- Cc: Richard Black <rjb at dcs dot gla dot ac dot uk>, newlib at sourceware dot cygnus dot com, rjb at dcs dot gla dot ac dot uk
Thanks for the great hints.
> This should give you your variant libraries. To access, specify -mprof when
> you compile/link. If you pick another directory name (e.g. profile, then the
? option is -mprofile).
> The option tells the compiler/linker what libraries to link in.
> You can find all this information and more about MULTILIB in the gcc info
Of course what I really want is to trigger the other library when linking with
-pg rather than -m<something>. But I think I can do that by hacking on the
specs file -- I have the local host's specs file to refer to.
(Of course I now need to _write_ an mcount implementation, and convince the
binutils to compile up a cross-gprof and ...)