P. 1


|Views: 1|Likes:
Published by Lera Serioghina

More info:

Published by: Lera Serioghina on Nov 19, 2013
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





At this point, you may think I’ve pretty much gone off the deep end in terms of deeply nested
procedures. There is admittedly a lot of overhead here. But there’s a method in my madness. As in
the case of UnOp, I’m looking ahead to the time when we’re going to want better code generation.
The way the code is organized, we can achieve this without major modifications to the program. For
example, in cases where the value pushed onto the stack does NOT have to be converted, it’s still
better to use the "pop and add" instruction. If we choose to test for such cases, we can embed the
extra tests into PopAdd and PopSub without changing anything else much.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->