home *** CD-ROM | disk | FTP | other *** search
- 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
- Newsgroups: comp.os.linux
- Subject: Re: shared libs - can everyone be happy with this?
- Message-ID: <NOP.92Aug16220027@theory.Mankato.MSUS.EDU>
- From: nop@theory.Mankato.MSUS.EDU (Jay A. Carlson)
- Date: 16 Aug 92 22:00:27
- References: <1992Aug14.145754.29366@crd.ge.com> <1992Aug15.042420.18914@serval.net.wsu.edu>
- Organization: Mankato State University
- Nntp-Posting-Host: theory.cs.mankato.msus.edu
- In-reply-to: hlu@phys1.physics.wsu.edu's message of Sat, 15 Aug 92 04:24:20 GMTLines: 24
- Lines: 24
-
- In article <1992Aug15.042420.18914@serval.net.wsu.edu> hlu@phys1.physics.wsu.edu (Hongjiu Lu) writes:
-
- I am not sure if we are thinking the same thing. In up-coming gcc 2.2.2d,
- which I am planning to release this Sunday. There is only one version of the
- shared images, which is used by both jump table and good, old shared lib.
- If you use -jump in LDFLAGS, your executables are linked with jump table. The
- good, old shared lib is used by default, which uses the same shared images
- but bypasses the jump table.
-
- Could the jumptables be set up to look where they were called from and
- then patch their target into the instruction from whence they were
- called? There then would only be overhead on the first call from each
- point.
-
- This would lose when functions were called through registers. I don't
- know how much gcc tries to do this and how much user programs make use
- of libraries calls through variables. I certainly use int (*foo)();
- often in my programs but never when it points to library calls.
-
- For such calls, the overhead of identifying the instruction as neither
- a direct jump or subroutine call would be incurred each time.
-
- Jay Carlson
- nop@theory.cs.mankato.msus.edu
-