mescc: Prepare for x86_64 support.
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 14 Aug 2018 10:35:24 +0000 (12:35 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 14 Aug 2018 10:35:24 +0000 (12:35 +0200)
commitee9081f3ece97a0406b093667be711b681489989
tree36fcfd5d0672ace78c62fcf9aa92ed225589aa85
parent92aad1ceaf016ea31d64f2dbfa8a7daa7f9145ce
mescc: Prepare for x86_64 support.

* module/mescc/info.scm (info): Add allocated, registers.
* module/mescc/i386/info.scm: New file.
* build-aux/build-guile.sh (SCM_FILES): Add it.
* module/mescc/compile.scm (c99-input->info): Add info parameter.
(c99-ast->info): Likewise.
(i386:type-alist): Remove.
(alloc-register, free-register): New function.
(expr->register*): Rename from expr->accu*.  Update callers.
(expr->accu): Rename from expr->accu.  Update callers.
* module/mescc/mescc.scm(%info): New variable.
* module/mescc/mescc.scm (c->ast): Use it.
(mescc:compile): Likewise.
(E->info): Likewise.
build-aux/build-guile.sh
module/mescc/compile.scm
module/mescc/i386/info.scm [new file with mode: 0644]
module/mescc/info.scm
module/mescc/mescc.scm
scaffold/main.c