Re: Dynamic compiling

Marko =?ISO-8859-1?Q?M=E4kel=E4?= <Marko.Makela@HUT.FI>
12 May 2003 01:29:46 -0400

          From comp.compilers

Related articles
Dynamic compiling davidslask@hotmail.com (David) (2003-05-06)
Re: Dynamic compiling basile@starynkevitch.net (Basile STARYNKEVITCH) (2003-05-12)
Re: Dynamic compiling Marko.Makela@HUT.FI (Marko =?ISO-8859-1?Q?M=E4kel=E4?=) (2003-05-12)
Re: Dynamic compiling herm@viabcp.com (Hugo Rozas) (2003-05-12)
Re: Dynamic compiling touati-nospamplease@prism.uvsq.fr (TOUATI Sid) (2003-05-12)
Re: Dynamic compiling pohjalai@cc.helsinki.fi (A Pietu Pohjalainen) (2003-05-12)
Re: Dynamic compiling thant@acm.org (Thant Tessman) (2003-05-12)
Re: Dynamic compiling boldyrev+nospam@cgitftp.uiggm.nsc.ru (Ivan Boldyrev) (2003-05-13)
Re: Dynamic compiling rossb@audiomulch.com (Ross Bencina) (2003-05-14)
[6 later articles]
| List of all articles for this month |

From: Marko =?ISO-8859-1?Q?M=E4kel=E4?= <Marko.Makela@HUT.FI>
Newsgroups: comp.compilers
Date: 12 May 2003 01:29:46 -0400
Organization: Helsinki University of Technology, CS lab
References: 03-05-031
Keywords: C
Posted-Date: 12 May 2003 01:29:46 EDT

>>>>> "David" == David <davidslask@hotmail.com> writes:


David> Hi, I am looking for a small efficient free/opensource compiler
David> to integrate into my program. it should allow you to compile
David> directly into memory, then execute the code directly from
David> memory.


Can you use an external compiler and dynamically link the generated
code into your executable? That would involve some temporary files.


I've implemented a C code generator for a state space exploration tool
(a kind of simulator, http://www.tcs.hut.fi/Software/maria/). The
program invokes the C compiler and linker in a subprocess and links
the resulting shared object with itself. The implementation works on
various Unix-like systems (including Mac OS X), but not on Win32,
since I haven't investigated how the DLL mechanism works there.


                Marko


Post a followup to this message

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