home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sun.misc:6423 comp.sys.sun.admin:10632 comp.windows.x:21448 comp.windows.x.motif:8743
- Newsgroups: comp.sys.sun.misc,comp.sys.sun.admin,comp.windows.x,comp.windows.x.motif
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!csus.edu!netcom.com!rogerr
- From: rogerr@netcom.com (roger reynolds)
- Subject: Questions about shared libraries
- Message-ID: <1993Jan22.020108.24124@netcom.com>
- Followup-To: poster
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Date: Fri, 22 Jan 1993 02:01:08 GMT
- Lines: 34
-
- I have been trying to understand shared libraries a bit more,
- particularly trying to understand why Motif does not "support"
- using a shared library for libXm, and I have just a couple of
- questions for somebody in the know...
-
- For the record, I am using a Sun Sparc2 OS 4.1.2, and Motif 1.1.4
-
- 1. As an experiment, I made a ".so" file for libXm.a, I did not
- recompile any source files, I just used ld to make a file
- called libXm.a.so.1.0. If I then link with this file, my
- application gets dramatically smaller, (like from 1.5mb to .6mb,
- more or less). And, by looking with pstat, I see that the
- process size has shrunk by a ton also.
- I have tried several applications that I have built over
- the past year, and they are all smaller, seem to start up
- just as fast, and generally work the same.
- So, is it really that easy to get Motif shared libraries,
- at least on a sun? If so, why doesn't OSF or somebody tell
- you that? Is there some problem with this approach that I
- have missed?
-
- 2. How does PIC code figure into this? I see that it is used
- by some libraries (Xt for example). These libraries seem
- to have .sa and .so versions. What is happening here?
- Is there some benefit to using PIC code over what I did
- in the above scenario?
-
- 3. Does anybody have some really neat tools for monitoring
- what is happening. Is there something better than pstat?
-
- Any really insightful information would be greatly appreciated.
-
- Thanks,
- rogerr@netcom.com
-