SCM Repository
[diderot] Diff of /branches/charisee/src/compiler/mid-to-low/mid-to-low.sml
Diff of /branches/charisee/src/compiler/mid-to-low/mid-to-low.sml
Parent Directory
|
Revision Log
|
Patch
144 |
val (code,cnt)=getSet(code, [],tbl0,0) |
val (code,cnt)=getSet(code, [],tbl0,0) |
145 |
|
|
146 |
|
|
147 |
val _ = if (cnt> 0) then |
val _ = if (cnt> 500) then |
148 |
(String.concat["\n",DstIL.Var.toString(y),"=",P.printerE e,"\n\t previous: ",Int.toString(length(code))," replaced: ", Int.toString cnt]) |
(String.concat["\n",DstIL.Var.toString(y),"=",P.printerE e,"\n\t previous: ",Int.toString(length(code))," replaced: ", Int.toString cnt]) |
149 |
else "" |
else "" |
150 |
|
|
192 |
end) |
end) |
193 |
|
|
194 |
fun translate prog = let |
fun translate prog = let |
|
val _= print" pre prog" |
|
195 |
val prog = Trans.translate prog |
val prog = Trans.translate prog |
|
val _= print"post prog" |
|
196 |
in |
in |
197 |
LowILCensus.init prog; |
LowILCensus.init prog; |
198 |
prog |
prog |
|
Legend:
Removed from v.3267 |
|
changed lines |
|
Added in v.3268 |
|
|