Re: Stack based-Register Based

rog@vitanuova.com (Roger Peppé)
1 Feb 2001 17:40:44 -0500

          From comp.compilers

Related articles
Stack based-Register Based vinoth@india.ti.com (Vinoth Kumar) (2001-01-19)
Re: Stack based-Register Based anton@mips.complang.tuwien.ac.at (2001-01-20)
Re: Stack based-Register Based vbdis@aol.com (2001-01-20)
Re: Stack based-Register Based roedy@mindprod.com (Roedy Green) (2001-01-26)
Re: Stack based-Register Based peter_flass@yahoo.com (2001-01-26)
Re: Stack based-Register Based andrewb@votehere.net (Andrew Berg) (2001-01-28)
Re: Stack based-Register Based rog@vitanuova.com (2001-02-01)
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)
[4 later articles]
| List of all articles for this month |

From: rog@vitanuova.com (Roger Peppé)
Newsgroups: comp.lang.java.machine,comp.compilers
Date: 1 Feb 2001 17:40:44 -0500
Organization: Compilers Central
References: 01-01-124 01-01-136
Keywords: architecture, interpreter
Posted-Date: 01 Feb 2001 17:40:44 EST

> Vinoth Kumar <vinoth@india.ti.com> writes:
> > What is the motivation behind designing Java as a stack based,
> > when lots of processors around us are register based.
>
> I was not involved in the design, so I can only guess:
>
> The JVM was first implemented in an interpreter, and that has probably
> influenced the design; for interpreters stack machines are a good
> choice (see my posting in the "Interpreter design" thread in
> comp.compilers).


For an alternative view, see "The Design of the Inferno virtual machine"
by Phil Winterbottom and Rob Pike, an HTML version of which can be
found at:


http://www.vitanuova.com/papers/hotchips.html


    cheers,
        rog.


Post a followup to this message

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