Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!uakari.primate.wisc.edu!caen!uwm.edu!linac!att!ucbvax!walhalla.wpd.sgi.com!ajp From: ajp@walhalla.wpd.sgi.com (Andrew Palay) Newsgroups: comp.soft-sys.andrew Subject: Re: Dynamic Loading Message-ID: <0cBzPM306XpyAjgapx@walhalla> Date: 20 May 91 16:18:32 GMT References: <9105201217.AA00428@romaint.uucp> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 31 Excerpts from mail: 20-May-91 Andrew Takats@romaint.uu (1216) > Subject: using ATK to make a subroutine library > Greetings from Pasta-Land! > How (easily) can Andrew code be used outside of the ATK dynamic > loading environment? A couple of questions may clear up my query: > 1) can I create a single executable that can be run with an absolute > minimum of accompanying files, etc., so that I can have other isolated > people run my application without loading Andrew? My current line of > thinking is to modify runapp to statically load all my applications > classes, and to link all my .o's together with runapp. How does this > sound? Yes you can do this. I did this to try to debug some things in messages when I didn't have access to a debugger that could handle dynamically loaded objects. The only thing is the assembly code that triggers the dynamic loading must still be there. > 2) can I access Andrew classes from non-Andrew C-code? I assume it's > possible since the class function produces normal C code, but I fear there's > some stumbling block somewhere. Has anyone done anything similar? Yes you can intermix them. The major stumbling block is that ATK believes it is control of the event loop. Your code must be written using an event driven model. Andrew J. Palay Principal Scientist Silicon Graphics Computer Systems