home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sun / misc / 6423 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  2.1 KB

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