109cbdd1e7
* module/language/c99/compiler.mes (statement->text+symbols+locals): Rename from statement->text+symbols. Handle locals. (formals->text): Add proper function preamble. (formals->locals): Add formals as locals. (expr->accu, ident->accu, ident->base, ident-ref, global-ref): New functions. (strlen, eputs, fputs, puts): New functions. (libc): New variable. (i386:libc): Rename from libc. Remove eputs and puts. * module/mes/libc-i386.mes (i386:eputs, i386:puts: Remove. (i386:call, i386:ret): Handle locals as argument. (i386:function-locals, i386:function-preamble, i386:jump, i386:local->accu, i386:local-add, i386:local-assign, i386:local->base, i386:ref-global, i386:ref-local, i386:ret-local, i386:mem-byte->accu, i386:test-jump, i386:write): New functions. * module/mes/libc-i386.scm: Export them. |
||
---|---|---|
.. | ||
c | ||
c99 | ||
paren.mes |