home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sun / misc / 3291 < prev    next >
Encoding:
Text File  |  1992-07-23  |  2.2 KB  |  54 lines

  1. Newsgroups: comp.sys.sun.misc
  2. Path: sparky!uunet!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
  3. From: etxmesa@eos.ericsson.se (Michael Salmon)
  4. Subject: Re: cc with -pg (profiling)
  5. Message-ID: <1992Jul23.093513.6123@ericsson.se>
  6. Sender: news@ericsson.se
  7. Nntp-Posting-Host: eos6c02.ericsson.se
  8. Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
  9. Organization: Ericsson Telecom AB
  10. References: <1992Jul22.135707.28712@hellgate.utah.edu> <1992Jul23.052334.28119@aristo.tau.ac.il>
  11. Date: Thu, 23 Jul 1992 09:35:13 GMT
  12. Lines: 40
  13.  
  14. In article <1992Jul23.052334.28119@aristo.tau.ac.il>,
  15. shani@genius.tau.ac.il (Oren Shani) writes:
  16. |> In article <1992Jul22.135707.28712@hellgate.utah.edu> allen%asylum.cs.utah.edu@cs.utah.edu (Allen Sanderson) writes:
  17. |> >
  18. |> >I add in the -Bstatic to the linking portion of the code and behold
  19. |> >lots of X11 routines (like _XDrawText) are not available in the static
  20. |> >libraries.  The profiling will not let use a combination of static and
  21. |> >dynamic libs either.
  22. |> But wouldn't the -Bstatic flag load the dynamic libraries as if they where
  23. |> static (i.e. in compile time) ?
  24.  
  25. In SunOS 4.x there are in fact 3 libraries for each function e.g. for
  26. the c run-time library there is libc.a, libc.sa.n.m and libc.so.n.m.
  27. The .a library is standard and used for static linking, the .sa
  28. contains those parts of the library that cannot be dynamic, e.g. static
  29. variables and the .so is the actual dynaic library. The building of
  30. libraries for profiling is controlled by #defines in your config, from
  31. mit/config/README:
  32.  
  33.         ProfileLibX             boolean for compiling -p Xlib
  34.         ProfileLibXArchive      boolean for building libX11_p
  35.         ProfileLibXau           boolean for buidling libXau_p
  36.         ProfileLibXaw           boolean for building libXaw_p
  37.         ProfileLibXdmcp         boolean for building libXdmcp_p
  38.         ProfileLibXext          boolean for building libXext_p
  39.         ProfileLibXmu           boolean for building libXmu_p
  40.         ProfileLibXt            boolean for building libXt_p
  41.         ProfileOldLibX          boolean for building liboldX_p
  42.  
  43.  
  44. -- 
  45.  
  46. Michael Salmon
  47.  
  48. #include    <standard.disclaimer>
  49. #include    <witty.saying>
  50. #include    <fancy.pseudo.graphics>
  51.  
  52. Ericsson Telecom AB
  53. Stockholm
  54.