Related articles |
---|
Conversion stack to TAC intermediate code csdw@alpha.cs.ru.ac.za (1991-03-26) |
Newsgroups: | comp.compilers |
From: | csdw@alpha.cs.ru.ac.za (Dave Williams) |
Keywords: | optimize, design |
Organization: | Compilers Central |
Date: | Tue, 26 Mar 91 10:52:28 MET |
In an attempt to optimize a functional language, I would like to
turn the stack based intermediate code into three address code.
Has anyone done similar conversions? Any references would be
greatly appreciated.
Dave Williams (Internet: alpha.cs.ru.ac.za)
[I'd think the easiest way would be to build an expression tree from the
RPN code, then walk it to produce the quads. The "dragon book" says a lot
about generating and manipulating three address code. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.