mescc: Write object files in hex2 or hex3 format.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 11 Jun 2017 11:11:40 +0000 (13:11 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 11 Jun 2017 11:11:40 +0000 (13:11 +0200)
commit1263d6e2788a6242d7a653bfc9734954eef54218
tree8d799471dc6b96cef78abfa762671068897495b7
parent766cfeab9a081922313c6352c6b8a8418350c71c
mescc: Write object files in hex2 or hex3 format.

* stage0/elf32.hex2: New file.
* module/mes/hex2.mes: New file.
* module/mes/hex2.scm: New file.
* module/language/c99/compiler.mes: Eradicate object lamdas.
  (current-eval, dec-xhex, function:-object->text, object->elf,
  object->objects, merge-objects, alist-add): Remove.
* module/mes/elf.mes (object->elf): New function, move from compiler.mes.
* module/mes/elf.scm: Export it.
* guile/mescc.scm (parse-opts): Add -g.
  (main): Use it.
* scripts/mescc.mes: Likewise.
* scripts/mescc-guile.make (MESCC.scm, MESLD.scm): Add -g flag.
* scripts/mescc-mes.make (MESCC.mes, MESLD.mes): Likewise.
* scaffold/m.c: Add proper includes.
* scaffold/argv.c: New file.
* scaffold/hello.c: Simplify.
* scaffold/micro-mes.c: Add proper includes.
* scaffold/t.c: Add proper includes.
20 files changed:
guile/mescc.scm
make/mescc-guile.make
make/mescc-mes.make
module/language/c99/compiler.mes
module/language/c99/compiler.scm
module/mes/as-i386.mes
module/mes/as-i386.scm
module/mes/elf-util.mes
module/mes/elf-util.scm
module/mes/elf.mes
module/mes/elf.scm
module/mes/hex2.mes [new file with mode: 0644]
module/mes/hex2.scm [new file with mode: 0644]
scaffold/argv.c [new file with mode: 0644]
scaffold/hello.c
scaffold/m.c
scaffold/micro-mes.c
scaffold/t.c
scripts/mescc.mes
stage0/elf32.hex2 [new file with mode: 0644]