Related articles |
---|
Native Code Generation from Abstract Stack Machine kevin@albrecht.net (Kevin Albrecht) (2004-02-27) |
Re: Native Code Generation from Abstract Stack Machine alex_mcd@btopenworld.com (Alex McDonald) (2004-03-02) |
Re: Native Code Generation from Abstract Stack Machine m.dentico@no-spam.it (Massimo Dentico) (2004-03-02) |
Re: Native Code Generation from Abstract Stack Machine bill@qswtools.com (Bill Cox) (2004-03-06) |
Re: Native Code Generation from Abstract Stack Machine peter@javamonkey.com (Peter Seibel) (2004-03-06) |
Re: Native Code Generation from Abstract Stack Machine peter@javamonkey.com (Peter Seibel) (2004-03-11) |
Re: Native Code Generation from Abstract Stack Machine samiam@moorecad.com (Scott Moore) (2004-03-11) |
Re: Native Code Generation from Abstract Stack Machine eliotm@pacbell.net (Eliot Miranda) (2004-03-11) |
Re: Native Code Generation from Abstract Stack Machine bonzini@gnu.org (2004-03-19) |
From: | Peter Seibel <peter@javamonkey.com> |
Newsgroups: | comp.compilers |
Date: | 6 Mar 2004 14:17:24 -0500 |
Organization: | SBC http://yahoo.sbc.com |
References: | 04-02-179 |
Keywords: | architecture, question, comment |
Posted-Date: | 06 Mar 2004 14:17:24 EST |
Cancel-Lock: | sha1:olXOG9+7tRD4RMFsKsyiTdpJH8w= |
"Kevin Albrecht" <kevin@albrecht.net> writes:
> I am looking for research or implementations on how to generate
> efficient machine code from abstract stack machines. It seems like
> most resources on machine code generation from intermediate languages
> focuses on translation from register-based intermediate languages.
>
> -- Kevin
> [I suspect the advice is turn it into abstract register code, then
> optimize. Optimizing stack code is a pain because of all of the
> bookkeeping you have to do for common subexpressions. -John]
I assume there are standard techniques for turning stack machine code
into abstract register code. Are there any good references where I can
read about them?
-Peter
--
Peter Seibel peter@javamonkey.com
[The simplest way is to treat the registers as a stack and run through
each basic block assigning values to registers. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.