Optimize calling asm routines and static foreign functions on x86-64.
authorStas Boukarev <stassats@gmail.com>
Thu, 15 Aug 2013 13:21:04 +0000 (17:21 +0400)
committerStas Boukarev <stassats@gmail.com>
Thu, 15 Aug 2013 13:21:04 +0000 (17:21 +0400)
commit076d38141d1d2689a1040dc8af71bd7fbf2b54a4
tree8cb7b4dbda1ade64134c16a1cfb8471cf39501ec
parent1540c1c1d517c58fa9a41629beb65cdce7dfafb6
Optimize calling asm routines and static foreign functions on x86-64.

Instead of loading the address using
LEA REG, [#xADDRESS]
use
MOV REG, #xADDRESS

Which saves 2 bytes.
src/assembly/x86-64/arith.lisp
src/assembly/x86-64/support.lisp
src/compiler/x86-64/alloc.lisp
src/compiler/x86-64/call.lisp
src/compiler/x86-64/cell.lisp
src/compiler/x86-64/insts.lisp
src/compiler/x86-64/macros.lisp
src/compiler/x86-64/move.lisp
src/compiler/x86-64/nlx.lisp
src/compiler/x86-64/show.lisp