home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!news.dell.com!uudell!pensoft!mike
- From: mike@pencom.com (Mike Heath)
- Newsgroups: comp.unix.aix
- Subject: Re: AIXv3 shared-library binding anomolies
- Message-ID: <1992Jul23.235023.5246@pencom.com>
- Date: 23 Jul 92 23:50:23 GMT
- References: <PRENER.92Jul19022217@prener.watson.ibm.com> <1992Jul20.223521.1080@ultra.com> <PRENER.92Jul21033506@prener.watson.ibm.com>
- Sender: usenet@pencom.com (Usenet Psuedo User)
- Distribution: comp
- Organization: Pencom Software, Austin, TX
- Lines: 39
-
- In article <PRENER.92Jul21033506@prener.watson.ibm.com> prener@watson.ibm.com (Dan Prener) writes:
- >In article <1992Jul20.223521.1080@ultra.com> marc@mercutio.ultra.com (Marc Kwiatkowski {Host Software-AIX}) writes:
- >>There are two separate issues here. First, the shared libc binds
- >>local function calls at load time.
- >
- >Actually, it binds them at link time. Is that what you mean by "load time"?
- >I tend to think of load time as the time "exec" loads the program.
-
- They are bound at link time, but the relocation information is retained.
- They could be rebound at load-time, but rebinding to an out-of-module
- routine would further complicate the program loader. Also, how would
- the memory segment be shared among multiple processes?
-
- >... Given the
- >lack of indirection in the current scheme, there is no way the bindings
- >can be changed at run time.
-
- I don't see why not, but there would probably be a big price to pay.
-
- >>I am a little skeptical about the claims of improved performance by
- >>statically binding inter-library calls to exported functions. What
- >>percentage of all function calls within libc.a are calls to libc.a entry
- >>points?
- >
- >The figure would depend on the application. Statically, I think the
- >vast majority are.
-
- Either I've misunderstood the question or the answer. I think the question
- was refering to the shared part of the C library. That shouldn't change
- with the application. Sadly, the answer is more than you would have
- thought. I count over 1000 different routines referenced within itself.
- Of course, damn near everything is exported. The number of references
- for each routine is unimportant.
-
- --
- Mike Heath Pencom ... We're not just headhunters anymore.
- Pencom Software
- Austin, TX
- mike@pencom.com
-