Re: Stack based-Register Based

"Joachim Durchholz" <joachim_d@gmx.de>
25 Feb 2001 11:07:23 -0500

          From comp.compilers

Related articles
[7 earlier articles]
Re: Stack based-Register Based ucapjab@ucl.ac.uk (Jonathan Barker) (2001-02-01)
Re: Stack based-Register Based rpw3@rigden.engr.sgi.com (2001-02-04)
Re: Stack based-Register Based Martin.Ward@durham.ac.uk (2001-02-04)
Re: Stack based-Register Based anton@mips.complang.tuwien.ac.at (2001-02-04)
Re: Stack based-Register Based anton@mips.complang.tuwien.ac.at (2001-02-04)
Re: Stack based-Register Based joachim_d@gmx.de (Joachim Durchholz) (2001-02-15)
Re: Stack based-Register Based joachim_d@gmx.de (Joachim Durchholz) (2001-02-25)
Re: Stack based-Register Based joachim_d@gmx.de (Joachim Durchholz) (2001-02-25)
Re: Stack based-Register Based henry@spsystems.net (2001-02-25)
Re: Stack based-Register Based ndalton@ics.uci.edu (Niall Dalton) (2001-03-01)
| List of all articles for this month |
From: "Joachim Durchholz" <joachim_d@gmx.de>
Newsgroups: comp.lang.java.machine,comp.compilers
Date: 25 Feb 2001 11:07:23 -0500
Organization: Compilers Central
References: 01-01-124 01-01-136 01-02-010 01-02-025
Keywords: architecture, performance, comment
Posted-Date: 25 Feb 2001 11:07:23 EST

Rob Warnock <rpw3@rigden.engr.sgi.com> wrote:
>
> Uh... Try <URL:http://www.vitanuova.com/inferno/papers/hotchips.html>,
> or even better
<URL:http://plan9.bell-labs.com/cm/cs/who/rob/hotchips.html>.


Ah, thanks. Found it.


There are other VM designs that I'd like to see compared with the usual
stack and register based ones:
1) Tree walkers. The code is a tree that's walked by the VM. VM data
would be essentially stack-based (but one could use registers for
caching the topmost stack entries).
2) Tree rewriters. The VM modifies the tree as it interprets it,
replacing inner nodes with their values as it goes along. Common
expressions can be shared, so it's really not a tree but a DAG.


Anybody with practical experiences who can compare these machines with
the classical stack/register-based VMs?


Notes:
Model (1) is that of "slim binaries" (IIRC).
Model (2) is a very popular model for functional languages (some aspects
of FPLs are easier to implement with a graph rewriter).


Regards,
Joachim
[This would be a good question for the virtmach list, a spinoff from
comp.compilers. To subscribe, send "subscribe" to
virtmach-request@lists.iecc.com. -John]


Post a followup to this message

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