Re: Dynamic compiling

Randolph Crawford <crwfrd@umich.edu>
15 May 2003 11:37:21 -0400

          From comp.compilers

Related articles
[4 earlier articles]
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)
Re: Dynamic compiling fjh@students.cs.mu.OZ.AU (2003-05-14)
Re: Dynamic compiling crwfrd@umich.edu (Randolph Crawford) (2003-05-15)
Re: Dynamic compiling hpc@NOSPAM.prism.uvsq.fr (Henri-Pierre CHARLES) (2003-05-16)
Re: Dynamic compiling nworth@earthlink.net (Norman Worth) (2003-05-16)
Re: Dynamic compiling firefly@diku.dk (Peter \Firefly\Lund) (2003-05-16)
Re: Dynamic compiling nicolas_capens@hotmail.com (2003-05-16)
| List of all articles for this month |

From: Randolph Crawford <crwfrd@umich.edu>
Newsgroups: comp.compilers
Date: 15 May 2003 11:37:21 -0400
Organization: University of Michigan Engineering
References: 03-05-031
Keywords: dynamic, interpreter

If your target is Windows, you probably should consider .NET
compliance for your executables, which means that you probably want to
generate bytecode, not native binary, and something like C# would be
an appropriate language.


As for an open source embeddable compiler, you might investigate Mono:
http://www.go-mono.com. I'm not up to date on its status, but it
sounds like you could embed it.


You might also look into embedding Perl into your app. I think this
is doable in Windows. (But it won't be .NET compliant, of course).


A couple of relevant articles on embedding Perl:


http://archive.devx.com/upload/registered/features/vcdj/2000/05may00/mb0500/mb0500-1.asp
http://www.perl.com/doc/manual/html/pod/perlembed.html


Other than that, you'd need to embed a call to something like
gcc, generate a DLL, and dynamically load it (with the djgpp
runtime library). Sounds ugly...


          Randy




David wrote:
> Hi, I am looking for a small efficient free/opensource compiler to
> integrate into my program. it should allow you to compile directly
> into memory, then execute the code directly from memory. Primary
> target is Windows(Intel), but support for other platforms would be
> nice.
--
Randy Crawford http://cac.engin.umich.edu
crwfrd_DESPAM_@umich.edu http://www-personal.engin.umich.edu/~crwfrd



Post a followup to this message

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