Parcourir la Source

Fix + on x86_64

This also means that from now on we *only* work on x86_64.
Lucas Stadler 8 ans auparavant
Parent
commit
6b62f16f9f
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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)