Re: Intermediate Language Design?

fs29@rummelplatz.uni-mannheim.de (User fs29)
7 Oct 1998 23:02:07 -0400

          From comp.compilers

Related articles
Intermediate Language Design? felixmish@usa.net (Felix Mish) (1998-10-06)
Re: Intermediate Language Design? fs29@rummelplatz.uni-mannheim.de (1998-10-07)
Re: Intermediate Language Design? etienne_gagnon@my-dejanews.com (1998-10-07)
Re: Intermediate Language Design? dwight@pentasoft.com (1998-10-07)
Re: Intermediate Language Design? vmakarov@cygnus.com (Vladimir Makarov) (1998-10-07)
Re: Intermediate Language Design? pjk@bcs.org.uk (Peter Knaggs) (1998-10-13)
| List of all articles for this month |

From: fs29@rummelplatz.uni-mannheim.de (User fs29)
Newsgroups: comp.compilers
Date: 7 Oct 1998 23:02:07 -0400
Organization: Rechenzentrum Uni Mannheim
References: 98-10-045
Keywords: design, interpreter

Felix Mish (felixmish@usa.net) wrote:
: Unlike Java VM, The intermediate should have almost the same elements
: of the source language. I am wondering how to represent this
: intermediate language. Anyone has any hint?
: [If you just want to interpret it, I like strings of RPN tokens and a
: simple stack-based interpreter. -John]


Algorithms for converting bytecode for virtual stack machines into
native code of an acceptable quality are also quite straight-forward.
For an example of a bytecode compiler, an interpreter, and some simple
native code backends (->386, ->8086, ->C), see the T3X compiler on
my homepage ('projects').
A document describing the design of Tcode -- the bytecode language used
by the compiler -- can be found on my homepage, too (in the file
t3x-docs.zip in the archive).


Bye,
nmh.
--
Nils M. Holm <fs29@rumms.uni-mannheim.de> Home of the
http://webrum.uni-mannheim.de/sowi/fs29/w3/index.html T3 Compilers


Post a followup to this message

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