|
@@ -25,7 +25,7 @@
|
|
|
|
|
|
\def\racketEd{0}
|
|
|
\def\pythonEd{1}
|
|
|
-\def\edition{0}
|
|
|
+\def\edition{1}
|
|
|
|
|
|
% material that is specific to the Racket edition of the book
|
|
|
\newcommand{\racket}[1]{{\if\edition\racketEd{#1}\fi}}
|
|
@@ -2576,8 +2576,8 @@ register allocation (Chapter~\ref{ch:register-allocation-Lvar}).
|
|
|
\MID \BININSTR{\code{subq}}{\Arg}{\Arg} \\
|
|
|
&\MID& \BININSTR{\code{movq}}{\Arg}{\Arg}
|
|
|
\MID \UNIINSTR{\code{negq}}{\Arg}\\
|
|
|
- &\MID& \CALLQ{\itm{label}}{\itm{int}} \MID \RETQ{}
|
|
|
- \MID \PUSHQ{\Arg} \MID \POPQ{\Arg} \MID \JMP{\itm{label}} \\
|
|
|
+ &\MID& \PUSHQ{\Arg} \MID \POPQ{\Arg}\\
|
|
|
+ &\MID& \CALLQ{\itm{label}}{\itm{int}} \MID \RETQ{} \MID \JMP{\itm{label}} \\
|
|
|
\LangXIntM{} &::= & \XPROGRAM{}{\Instr^{*}}{}
|
|
|
\end{array}
|
|
|
\]
|
|
@@ -7420,7 +7420,8 @@ $\Atm$.
|
|
|
&\MID& \gray{ \BININSTR{\code{movq}}{\Arg}{\Arg}
|
|
|
\MID \UNIINSTR{\code{negq}}{\Arg} } \\
|
|
|
&\MID& \gray{ \CALLQ{\itm{label}}{\itm{int}} \MID \RETQ{}
|
|
|
- \MID \PUSHQ{\Arg} \MID \POPQ{\Arg} \MID \racket{\JMP{\itm{label}}} } \python{\JMP{\itm{label}}}\\
|
|
|
+ \MID \PUSHQ{\Arg}} \\
|
|
|
+ &\MID& \gray{ \POPQ{\Arg} \MID \racket{\JMP{\itm{label}}} } \python{\JMP{\itm{label}}}\\
|
|
|
&\MID& \BININSTR{\code{xorq}}{\Arg}{\Arg}
|
|
|
\MID \BININSTR{\code{cmpq}}{\Arg}{\Arg}\\
|
|
|
&\MID& \BININSTR{\code{set}}{\itm{cc}}{\Arg}
|