Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!cs.umn.edu!sctc.com!stachour From: stachour@sctc.com (Paul Stachour) Newsgroups: comp.lang.c Subject: Re: dynamic loaders Message-ID: <1991Apr26.134659.2873@sctc.com> Date: 26 Apr 91 13:46:59 GMT References: <14530@ccncsu.ColoState.EDU> Distribution: usa Organization: SCTC Lines: 37 swanbacd@handel.cs.colostate.edu (daniel thom swanback) writes: >Gentlemen, > This is a problem that I have encountered frequently and has >produced a stall in my current efforts. Conceptually, I need to >be able to use the type of the data as a variable itself. The >routine to write needs to be able to call other functions at >run-time. The problems it has produced are a direct consequence >of the following: > 1. Every function needs a return of any valid C > type > 2. Every function takes on a variable length > parameter list > 3. Every parameter in the list has to be > declared as any valid C type. > The problem of dynamic linking and loading is an old one. It is a well-solved problem. The question of "what do I need to do it?" is indeed the proper one. I would remond your search begin at the "classical" manual that talks about the system that first did effective, well-done, dynamic linking. This is the Multics system, and the manual I would recommend for you is the Multics Programmer's Reference Manual, Order Number AG91. In the back, it has the complete data-structure definitions (in PL/1, but you can translate) for what you need. It includes about 65 different data-types; you can easily extend it as you need. This can be ordered through your "Bull" representative I'm told. It might not be possible, since Multics was discontinued, but it's where I would start. -- Paul Stachour SCTC, 1210 W. County Rd E, Suite 100 stachour@sctc.com Arden Hills, MN 55112 [1]-(612) 482-7467