home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8427 < prev    next >
Encoding:
Text File  |  1992-08-16  |  1.8 KB  |  40 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!usc!elroy.jpl.nasa.gov!ames!agate!boulder!ophelia!drew
  3. From: drew@ophelia.cs.colorado.edu (Drew Eckhardt)
  4. Subject: Re: shared libs - can everyone be happy with this?
  5. Message-ID: <1992Aug17.065450.28834@colorado.edu>
  6. Sender: news@colorado.edu (The Daily Planet)
  7. Nntp-Posting-Host: ophelia.cs.colorado.edu
  8. Organization: University of Colorado at Boulder
  9. References: <1992Aug14.145754.29366@crd.ge.com> <1992Aug15.042420.18914@serval.net.wsu.edu> <NOP.92Aug16220027@theory.Mankato.MSUS.EDU>
  10. Date: Mon, 17 Aug 1992 06:54:50 GMT
  11. Lines: 27
  12.  
  13. In article <NOP.92Aug16220027@theory.Mankato.MSUS.EDU> nop@theory.Mankato.MSUS.EDU (Jay A. Carlson) writes:
  14. >In article <1992Aug15.042420.18914@serval.net.wsu.edu> hlu@phys1.physics.wsu.edu (Hongjiu Lu) writes:
  15. >
  16. >
  17. >Could the jumptables be set up to look where they were called from and
  18. >then patch their target into the instruction from whence they were
  19. >called?  There then would only be overhead on the first call from each
  20. >point.
  21.  
  22. Boom.  You've just dirtied that page, and it is no longer 
  23. shareable.  So, instead of having > 200K shared between all
  24. of your shells, you have closer to 800K (Who has less than
  25. 4 shells running at a time).  Not a good thing (tm).
  26.  
  27. Also, if we ever unbreak Linux, writing to code space should trigger
  28. a segmentation fault - it's like it is now because the estdio library 
  29. was broken, and wrote to the code. 
  30.  
  31. IMHO, if you want speed, compile it to a .a, and link against the 
  32. new shared library whenever it comes out.  You get shared libraries, 
  33. can still upgrade easily, but don't take the minimal performance
  34. hit incurred by jump tables.
  35.  
  36. -- 
  37. Microsoft is responsible for propogating the evils it calls DOS and Windows, 
  38. IBM for AIX (appropriately called Aches by those having to administer it), but neither is as bad as AT&T.  Boycott AT&T, and let them know how you feel. 
  39.  
  40.