Re: [作业] compiler homework5

楼主: sophialiege (with friends)   2007-06-11 01:16:37
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 125.225.73.46
推 denehs:x = 1+(1+(1+(1+(1+(1+....(1+1))))....); 这样就会用到XD 06/11 01:02
推 CuteLoga:所以说还是先去找空的reg来用 真的不够再newTemp囉? 06/11 01:05
你这样写code只会更多
因为别人只要一直假设register不够怎么办
而你却要先写check register够不够
够的话 ... 不够的话 ...
除非你只implement够的情况
但这样你的compiler遇到复杂的算式就炸了
善用register是codegen后要进行最佳化的议题
作者: denehs (DE)   2006-06-11 01:02:00
x = 1+(1+(1+(1+(1+(1+....(1+1))))....); 这样就会用到XD
作者: CuteLoga (台大资工新鲜人XD)   2006-06-11 01:05:00
所以说还是先去找空的reg来用 真的不够再newTemp囉?okok thanks :)

Links booklink

Contact Us: admin [ a t ] ucptt.com