home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8419 < prev    next >
Encoding:
Internet Message Format  |  1992-08-16  |  1.8 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!mips!carbon!news.cs.indiana.edu!umn.edu!msus1.msus.edu!msus1.msus.edu!nop
  2. Newsgroups: comp.os.linux
  3. Subject: Re: shared libs - can everyone be happy with this?
  4. Message-ID: <NOP.92Aug16220027@theory.Mankato.MSUS.EDU>
  5. From: nop@theory.Mankato.MSUS.EDU (Jay A. Carlson)
  6. Date: 16 Aug 92 22:00:27
  7. References: <1992Aug14.145754.29366@crd.ge.com> <1992Aug15.042420.18914@serval.net.wsu.edu>
  8. Organization: Mankato State University
  9. Nntp-Posting-Host: theory.cs.mankato.msus.edu
  10. In-reply-to: hlu@phys1.physics.wsu.edu's message of Sat, 15 Aug 92 04:24:20 GMTLines: 24
  11. Lines: 24
  12.  
  13. In article <1992Aug15.042420.18914@serval.net.wsu.edu> hlu@phys1.physics.wsu.edu (Hongjiu Lu) writes:
  14.  
  15.    I am not sure if we are thinking the same thing. In up-coming gcc 2.2.2d,
  16.    which I am planning to release this Sunday. There is only one version of the
  17.    shared images, which is used by both jump table and good, old shared lib.
  18.    If you use -jump in LDFLAGS, your executables are linked with jump table. The
  19.    good, old shared lib is used by default, which uses the same shared images
  20.    but bypasses the jump table.
  21.  
  22. Could the jumptables be set up to look where they were called from and
  23. then patch their target into the instruction from whence they were
  24. called?  There then would only be overhead on the first call from each
  25. point.
  26.  
  27. This would lose when functions were called through registers.  I don't
  28. know how much gcc tries to do this and how much user programs make use
  29. of libraries calls through variables.  I certainly use int (*foo)();
  30. often in my programs but never when it points to library calls.  
  31.  
  32. For such calls, the overhead of identifying the instruction as neither
  33. a direct jump or subroutine call would be incurred each time.
  34.  
  35. Jay Carlson
  36. nop@theory.cs.mankato.msus.edu
  37.