|Dynamic compilation/linking email@example.com (Steve Boswell) (1991-12-05)|
|Re: Dynamic compilation/linking oliver@madrone.CS.Berkeley.EDU (1991-12-07)|
|Re: Dynamic compilation/linking firstname.lastname@example.org (1991-12-10)|
|Re: Dynamic compilation/linking email@example.com (Marc Sabatella) (1991-12-11)|
|Re: Dynamic compilation/linking firstname.lastname@example.org (1991-12-12)|
|Re: Dynamic compilation/linking email@example.com (1991-12-13)|
|Re: Dynamic compilation/linking firstname.lastname@example.org (1991-12-17)|
|From:||Steve Boswell <email@example.com>|
|Organization:||University of California, San Diego|
|Date:||5 Dec 91 18:56:06 GMT|
I'm currently working on an extendible compiler, so I can experiment with
different language ideas. It's based on C, for its low-level abilities.
I'd like to compile a given piece of code into machine code and have it in
some buffer in memory, then call it. Additionally I'd like to be able to
read code in from disk and run it.
Can this be done portably? (Obviously I will not expect code compiled on
one machine to run on another.)
Please mail replies, I'll post a summary.
[The short answer is no, but there may be approaches that are relatively
easily ported to a variety of machines. Certainly many versions of Unix
have linker options, usually poorly documented, which let you link code
intended to be read into an existing image. -John]
Return to the
Search the comp.compilers archives again.