瀏覽代碼

Fix + on x86_64

This also means that from now on we *only* work on x86_64.
Lucas Stadler 8 年之前
父節點
當前提交
6b62f16f9f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scm/inc/compiler.scm

+ 2 - 2
scm/inc/compiler.scm

@ -85,9 +85,9 @@
85 85
     (emit-compare))
86 86
    ((+)
87 87
     (emit-expr (primcall-operand2 x) si)
88
     (emit "movl %eax, ~a(%rbp)" si) ; move second arg on the stack
88
     (emit "movl %eax, ~a(%rsp)" si) ; move second arg on the stack
89 89
     (emit-expr (primcall-operand1 x) (- si wordsize))
90
     (emit "addl ~a(%rbp), %eax" si))
90
     (emit "addl ~a(%rsp), %eax" si))
91 91
    ))
92 92
93 93
(define (compile-program x)