Sen descrición

Jeremiah Orians d1a31270c6 Updated README to reflect current commands %!s(int64=2) %!d(string=hai) anos
functions 8ef2680439 Add risc-v port of mes-m2 %!s(int64=3) %!d(string=hai) anos
guix 93e3729849 guix: mes-m2: Update to 0-1.fd1a175. %!s(int64=3) %!d(string=hai) anos
include dad1744fa8 Fix definition of S_ISUID %!s(int64=3) %!d(string=hai) anos
lib c07111ff87 Add forgotten riscv M1 definition file. %!s(int64=3) %!d(string=hai) anos
mes b44fbc976a Removed need for double ctrl-d to exit %!s(int64=3) %!d(string=hai) anos
module 989829fbf4 update command line args for `M1` and `hex2` calls %!s(int64=3) %!d(string=hai) anos
scaffold 83eba13500 scaffold: Add exit-42.c. %!s(int64=4) %!d(string=hai) anos
scripts 1dbfa92882 mescc: Update from upstream. %!s(int64=3) %!d(string=hai) anos
src cb2d4a956d #define fixes for new M2-Planet that supports #error. %!s(int64=3) %!d(string=hai) anos
test 1cc6aceea1 Removed failing tests %!s(int64=4) %!d(string=hai) anos
.gitignore a231ed8efd Importing of M2-Planet buildable mes.c %!s(int64=3) %!d(string=hai) anos
LICENSE 55b619475c Initial commit %!s(int64=6) %!d(string=hai) anos
README.md d1a31270c6 Updated README to reflect current commands %!s(int64=2) %!d(string=hai) anos
guix.scm 72303a3ed7 guix: Add package description and development setup. %!s(int64=3) %!d(string=hai) anos
kaem.riscv64 c07111ff87 Add forgotten riscv M1 definition file. %!s(int64=3) %!d(string=hai) anos
kaem.run c07111ff87 Add forgotten riscv M1 definition file. %!s(int64=3) %!d(string=hai) anos
kaem.x86 c07111ff87 Add forgotten riscv M1 definition file. %!s(int64=3) %!d(string=hai) anos
makefile 5a07117954 Update makefile to run correct kaem file. %!s(int64=3) %!d(string=hai) anos
pre-inst-env fd1a1755a1 pre-inst-env: Hardcoded settings. %!s(int64=3) %!d(string=hai) anos

README.md

mes-m2

Making Mes.c M2-Planet friendly

Goal

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).

Status

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.