From: Stefan B. <st...@no...> - 2003-10-25 05:52:31
|
"Scott T. Smith" <sc...@ge...> writes: > I'm still trying to decide how involved to make the compiler... do I > support things like: > > if( g3<g5+3*g6) {} > > or force the user to type: > > g2=g6; > g2*=3; > g2+=g5; > if( g3<g2) {} > > since there aren't very many registers, and there is no stack or other > storage, then allocating registers is an expensive proposition. The first version would be nice, the last fully adequate. I'd say go for the last one, which would never run out of registers. Given the lack of alternative storage, it could be inappropriate to give the user the impression that complex structures work, when they in fact only works if the other code isn't complex or register wasting. /Stefan |