mescc: Have micro-mes print argc.
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 3 Jan 2017 11:52:59 +0000 (12:52 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 3 Jan 2017 11:52:59 +0000 (12:52 +0100)
commit01177f7324b9a21c0867434c68e93b98ed4eab22
tree60489079f0d4f528309be656e3ace92e20016429
parentb93d5188ea5b0370262eabb330b5bada032181b3
mescc: Have micro-mes print argc.

* module/language/c99/compiler.mes (accu->ident): New function.
  (statement->text+symbols+locals): Use it to implement initialization
  with immediate, local.
  (_start): Call main with argc,argv [WAS: 0,0].
* module/mes/libc-i386.mes (i386:push-accu, i386:accu->local): New
  functions.
* module/mes/libc-i386.scm: Export them.
* doc/examples/micro-mes.c (main): Return argc as exit status.
module/language/c99/compiler.mes
module/mes/libc-i386.mes
module/mes/libc-i386.scm
scaffold/micro-mes.c