[M3devel] repeat evaluation in check_range/hi/low/index/nil?

Jay K jay.krell at cornell.edu
Fri Dec 21 11:00:08 CET 2012


I was going to fix M3C to allocate temporaries
to avoid repeat evaluation for check_hi/lo/range/index/nil.


I went looking at cm3cg, to confirm that check_eq is different -- it pops its inputs, so no need for a temporary there. Ok.



And then, it doesn't look like cm3cg avoids the repeat evaluation?


Still I should do it?


It never matters, because frontend allocates temporaries
for all function call return values?
(It seems to.)


Therefore whatever is repeatedly evaluated, has no side effects?


And because "assignment isn't expression" -- store pops its value from the stack. I think.


 - Jay


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20121221/619490b5/attachment-0001.html>


More information about the M3devel mailing list