Jeremiah Orians d1a31270c6 Updated README to reflect current commands | пре 2 година | |
---|---|---|
functions | пре 3 година | |
guix | пре 3 година | |
include | пре 3 година | |
lib | пре 3 година | |
mes | пре 3 година | |
module | пре 3 година | |
scaffold | пре 4 година | |
scripts | пре 3 година | |
src | пре 3 година | |
test | пре 4 година | |
.gitignore | пре 3 година | |
LICENSE | пре 6 година | |
README.md | пре 2 година | |
guix.scm | пре 3 година | |
kaem.riscv64 | пре 3 година | |
kaem.run | пре 3 година | |
kaem.x86 | пре 3 година | |
makefile | пре 3 година | |
pre-inst-env | пре 3 година |
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.