🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #92

Re: What's wrong with stack machines?

#92
From: Z. Zhang
Date: Sat, 31 Oct 1992 00:33
38 lines
2214 bytes
In article <1992Oct30.172550.29256@en.ecn.purdue.edu> wscott@en.ecn.purdue.edu (Wayne H Scott) writes:
>Mark Hahn (mchst12@cislabs.pitt.edu) wrote:
>: I've been wondering why stack machines are so out-of-favor.
>: Yes, modern compilers do a creditable job of using the relative abundance
>: of registers that a modern macine provides.  But they DO spill, no?
>: 
>[many good advantages of stacks deleted]
>: 
>: To rephrase: why is resource allocation into a static set,
>: namely a fixed register set, better than stack allocation?
>: 
>: regards, Mark.
>
>I many disadvantage of a stack machine is directly due to the fact that
>all operations work with the same set of arguments.
>
>You can hardly write two instructions that do not have a data dependance.
>Try pipelining a stack machine or a super-scalar.
>Every instruction needs to read the TOS and the instruction before has
>not yet written the TOS.
>
>Wayne
>-- 
>_________________________________________________________________________
>Wayne Scott             |  INTERNET: wscott@ecn.purdue.edu
>Electrical Engineering  |  BITNET:   wscott%ecn.purdue.edu@purccvm
>Purdue University       |  UUCP:     {purdue, pur-ee}!ecn.purdue.edu!wscott

I suppose pipelining can't really stand alone without the help of other
tricks like forwarding and bypassing. These techiniques, however, do not
have to be private to register based machines only, tho the implementation
could be rather different. 

While many other points against stack machine are well addressed, I feel
this thread may be less obvious as it seems. Could any kind soul in the
real industry throm some lights on that?

Z.Z
Technical Details
Message-ID: <1992Oct31.003307.12467@csrd.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!ux1.cso.uiuc.edu!csrd.uiuc.edu!sp1.csrd.uiuc.edu!zzhang
References: <8723@blue.cis.pitt.edu.UUCP> <1992Oct30.172550.29256@en.ecn.purdue.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!ux1.cso.uiuc.edu!csrd.uiuc.edu!sp1.csrd.uiuc.edu!zzhang
From: zzhang@sp1.csrd.uiuc.edu (Z. Zhang)
Newsgroups: comp.arch
Subject: Re: What's wrong with stack machines?
Message-ID: <1992Oct31.003307.12467@csrd.uiuc.edu>
Date: 31 Oct 92 00:33:07 GMT
Article-I.D.: csrd.1992Oct31.003307.12467
References: <8723@blue.cis.pitt.edu.UUCP> <1992Oct30.172550.29256@en.ecn.purdue.edu>
Sender: news@csrd.uiuc.edu
Organization: Univ of Illinois, Center for Supercomputing R&D, Urbana, IL
Lines: 38