Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.internals Subject: Re: Loading and Executing Object Code at Runtime Message-ID: <6102@auspex.auspex.com> Date: 17 Feb 91 21:29:43 GMT References: <1991Feb16.100946.601@kithrup.COM> <1991Feb16.163527.25147@virtech.uucp> <1991Feb16.213056.2632@kithrup.COM> Organization: Auspex Systems, Santa Clara Lines: 14 >> (*funcp)(test); > >This is, if you will pardon the hand waving, "different." This is an idiom >the compiler knows about, and it spits out the correct code. I suspect just about *any* software that let you load and execute object code at runtime from C would use said idiom - i.e., you ask it "load up thus-and-such an object file", and then ask it "here's a function name, give me a pointer to that function", and then call the function through that pointer - so I suspect that just about *any* software that would let you load and execute object code at runtime wouldn't be bitten by that problem on a *86. (For instance, the "dlopen()"/"dlsym()" code in S5R4 works that way, and I suspect its moral equivalent in OSF/1 does so as well.)