tiger icon indicating copy to clipboard operation
tiger copied to clipboard

Bug in unTx function

Open TruongQToan opened this issue 3 years ago • 0 comments

I know this repo was finished a long time ago but as a person who is learning how to write a Tiger compiler, this is still a valuable resource. As I read your code, I double that the unNx function has an error. image

I think the correct implementation for unNx with Cx should be something like this.

    let val t = Temp.newlabel() in T.SEQ(genstm(t,t), T.LABEL t) end

Looking forward to hearing from you. xD

TruongQToan avatar Dec 07 '21 11:12 TruongQToan