Dynamic compilation/linking

Steve Boswell <whatis@ucsd.edu>
5 Dec 91 18:56:06 GMT

          From comp.compilers

Related articles
Dynamic compilation/linking whatis@ucsd.edu (Steve Boswell) (1991-12-05)
Re: Dynamic compilation/linking oliver@madrone.CS.Berkeley.EDU (1991-12-07)
Re: Dynamic compilation/linking fkittred@bbn.com (1991-12-10)
Re: Dynamic compilation/linking mjs@hpmonk.fc.hp.com (Marc Sabatella) (1991-12-11)
Re: Dynamic compilation/linking pardo@cs.washington.edu (1991-12-12)
Re: Dynamic compilation/linking tbn@csd.cri.dk (1991-12-13)
Re: Dynamic compilation/linking parag@netcom.com (1991-12-17)
| List of all articles for this month |

Newsgroups: comp.compilers,comp.lang.c
From: Steve Boswell <whatis@ucsd.edu>
Followup-To: comp.compilers
Keywords: linking, experiment
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.

Steve Boswell
[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]

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.