home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.misc
- Path: sparky!uunet!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
- From: etxmesa@eos.ericsson.se (Michael Salmon)
- Subject: Re: cc with -pg (profiling)
- Message-ID: <1992Jul23.093513.6123@ericsson.se>
- Sender: news@ericsson.se
- Nntp-Posting-Host: eos6c02.ericsson.se
- Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
- Organization: Ericsson Telecom AB
- References: <1992Jul22.135707.28712@hellgate.utah.edu> <1992Jul23.052334.28119@aristo.tau.ac.il>
- Date: Thu, 23 Jul 1992 09:35:13 GMT
- Lines: 40
-
- In article <1992Jul23.052334.28119@aristo.tau.ac.il>,
- shani@genius.tau.ac.il (Oren Shani) writes:
- |> In article <1992Jul22.135707.28712@hellgate.utah.edu> allen%asylum.cs.utah.edu@cs.utah.edu (Allen Sanderson) writes:
- |> >
- |> >I add in the -Bstatic to the linking portion of the code and behold
- |> >lots of X11 routines (like _XDrawText) are not available in the static
- |> >libraries. The profiling will not let use a combination of static and
- |> >dynamic libs either.
- |> But wouldn't the -Bstatic flag load the dynamic libraries as if they where
- |> static (i.e. in compile time) ?
-
- In SunOS 4.x there are in fact 3 libraries for each function e.g. for
- the c run-time library there is libc.a, libc.sa.n.m and libc.so.n.m.
- The .a library is standard and used for static linking, the .sa
- contains those parts of the library that cannot be dynamic, e.g. static
- variables and the .so is the actual dynaic library. The building of
- libraries for profiling is controlled by #defines in your config, from
- mit/config/README:
-
- ProfileLibX boolean for compiling -p Xlib
- ProfileLibXArchive boolean for building libX11_p
- ProfileLibXau boolean for buidling libXau_p
- ProfileLibXaw boolean for building libXaw_p
- ProfileLibXdmcp boolean for building libXdmcp_p
- ProfileLibXext boolean for building libXext_p
- ProfileLibXmu boolean for building libXmu_p
- ProfileLibXt boolean for building libXt_p
- ProfileOldLibX boolean for building liboldX_p
-
-
- --
-
- Michael Salmon
-
- #include <standard.disclaimer>
- #include <witty.saying>
- #include <fancy.pseudo.graphics>
-
- Ericsson Telecom AB
- Stockholm
-