Newsgroups: comp.lang.scheme,comp.compilers
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!spdcc!iecc!compilers-sender
From: gbaker@rp.CSIRO.AU (Greg Baker)
Subject: Re: Mixing languages
Message-ID: <95-06-077@comp.compilers>
Followup-To: comp.lang.scheme,comp.compilers
Keywords: GCC
Sender: compilers-sender@chico.iecc.com
Organization: CSIRO Division of Radiophysics/Australia Telescope National Facility
References: <95-06-013@comp.compilers>
Date: Tue, 27 Jun 1995 14:44:02 GMT
Approved: compilers@chico.iecc.com
Lines: 23
Xref: glinda.oz.cs.cmu.edu comp.lang.scheme:12962 comp.compilers:8988

Kurt Stephens (stephens@mcs.com) wrote:
: I would like to see GCC packaged as a linkable library (or a server) so we
: can call a function (imagine some thing like "void* GCC_compile(RTL
: expression)") with a RTL tree and have it return a function pointer!

That _would_ be handy!

: Has any one designed an embeddable, portable, retargetable "compiler"
: library?

Sort of.  Dr Ousterhout has (mentioned that he is currently / promised that he
will be / been accused of) writing an on-the-fly TCL compiler.  The
only difference to a traditional TCL interpreter is that the "proc"
command would compile its arguments into local-native code.
Amazingly,  that's all that's necessary.


______________________________________________________________________

      Gregory D. Baker (gbaker@rp.csiro.au) CSIRO Radiophysics
-- 
Send compilers articles to compilers@iecc.com,
meta-mail to compilers-request@iecc.com.
