Re: Mixing languages (Jeffrey Dean)
Wed, 28 Jun 1995 20:47:33 GMT

          From comp.compilers

Related articles
Re: Mixing languages (1995-06-03)
Re: Mixing languages (1995-06-05)
Re: Mixing languages (1995-06-24)
Re: Mixing languages gbaker@rp.CSIRO.AU (1995-06-27)
Re: Mixing languages (1995-06-28)
| List of all articles for this month |

Newsgroups: comp.lang.scheme,comp.compilers
From: (Jeffrey Dean)
Keywords: GCC
Organization: University of Washington
References: 95-06-013 95-06-077
Date: Wed, 28 Jun 1995 20:47:33 GMT

gbaker@rp.CSIRO.AU (Greg Baker) writes:
|> Kurt Stephens ( 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?

Such a system, based on the lcc intermediate representation, was
developed by Dawson Engler and Todd Proebsting. You basically write
code that constructs lcc IR for the function you want to generate, and
hand it off to the library. The library then compiles it, and returns
a function pointer to the dynamically generated code. Because it's
based on lcc's IR, the client code is relatively machine independent.
The paper showed performance results on MIPS and Sparc-based machines.
The system was described in ASPLOS VI (1994):

Dawson Engler and Todd Proebsting, "DCG: An Efficient, Retargetable
Dynamic Code Generation System", Proceedings of ASPLOS-VI,
pp. 263-272, San Jose, CA, 1994. Published as SIGPLAN Notices,
vol. 29, num. 11.

I'm not sure what the availability of the library is, however.


Jeffrey Dean ( Graduate Student, Cecil Project
Dept. of Computer Science & Engineering University of Washington

Post a followup to this message

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