Pārlūkot izejas kodu

fixed a typo in grammar

Jeremy Siek 6 gadi atpakaļ
vecāks
revīzija
cc16f59972
2 mainītis faili ar 2 papildinājumiem un 14 dzēšanām
  1. 1 1
      book.tex
  2. 1 13
      notes.md

+ 1 - 1
book.tex

@@ -4874,7 +4874,7 @@ the register allocator.
        \mid (\key{cmpq} \; \Arg\; \Arg) \mid (\key{set}\itm{cc} \; \Arg)  } \\
        &\mid& \gray{  (\key{movzbq}\;\Arg\;\Arg)
        \mid  (\key{jmp} \; \itm{label})
-       \mid (\key{j}\itm{cc} \; \itm{label})
+       \mid (\key{jmp-if}\itm{cc} \; \itm{label})
        \mid (\key{label} \; \itm{label})  } \\
 x86_2 &::= & \gray{  (\key{program} \;\itm{info} \;(\key{type}\;\itm{type})\; \Instr^{+})  }
 \end{array}

+ 1 - 13
notes.md

@@ -1,13 +1,6 @@
 
 
-Revising the architecture to better match Dybvig's P523 compiler
-----------------------------------------------------------------
 
-* to do: figure out where to introduce the Tail context. It seems to
-  happen in Dybvig's A10, but that assignment doesn't say anything
-  about it.
-
-* to do: insert type checking
 
 --------------------------------------------------------------------------------
 R1:
@@ -20,7 +13,7 @@ uniquify
 V
 
     exp ::= x | n | (op exp*) | (let ([x exp]) exp)
-    R1 ::= (program () exp)
+    R1' ::= (program () exp)
 
 remove-complex-opera*
 |
@@ -55,13 +48,8 @@ select-instructions
 V
 
     imm ::= (var x) | (deref r n) | (int n)
-<<<<<<< HEAD
     instr ::= (addq imm imm) | (retq) | ...
-    x86-CFG ::= (program ((locals . x*)) instr*)
-=======
-    instr ::= (addq imm imm) | ...
     x86 ::= (program ((locals . x*)) instr*)
->>>>>>> 65d8b657cf3fb531ba65dfa5cf93c3318f5bafba
 
 assign-homes
 |