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