Jeremiah Orians d1a31270c6 Updated README to reflect current commands | il y a 2 ans | |
---|---|---|
functions | il y a 3 ans | |
guix | il y a 3 ans | |
include | il y a 3 ans | |
lib | il y a 3 ans | |
mes | il y a 3 ans | |
module | il y a 3 ans | |
scaffold | il y a 4 ans | |
scripts | il y a 3 ans | |
src | il y a 3 ans | |
test | il y a 4 ans | |
.gitignore | il y a 3 ans | |
LICENSE | il y a 6 ans | |
README.md | il y a 2 ans | |
guix.scm | il y a 3 ans | |
kaem.riscv64 | il y a 3 ans | |
kaem.run | il y a 3 ans | |
kaem.x86 | il y a 3 ans | |
makefile | il y a 3 ans | |
pre-inst-env | il y a 3 ans |
Making Mes.c M2-Planet friendly
The goal of this project is to provide a minimally-adapted GNU Mes which can be compiled by M2-Planet and is able to compile the real GNU Mes (and thereby run mescc).
Completed for x86 but porting to M2libc to accelerate architecture porting is not done.
Just run:
$ make mes-m2-boot
You can try running mescc like this
MES_ARENA=20000000
MES_MAX_ARENA=20000000
MES_STACK=6000000
export MES_ARENA MES_MAX_ARENA MES_STACK
$ ./bin/mes --no-auto-compile -L ../nyacc-1.00.2/module/ -e main scripts/mescc.scm -I include -v -S scaffold/exit-42.c -o foo.S
You can also compare the execution with guile:
$ guile --no-auto-compile -L ../nyacc-1.00.2/module/ -L module -e main scripts/mescc.scm -I include -v -S scaffold/exit-42.c -o foo2.S
to compile using the MesCC and nyacc included here.