stikonas / mes-m2

Making Mes.c M2-Planet friendly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

$ ./bin/mes --no-auto-compile -L 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's:

$ guile --no-auto-compile -L module -e main scripts/mescc.scm -I include -v -S scaffold/exit-42.c -o foo.S

to compile using the MesCC and nyacc included here.

About

Making Mes.c M2-Planet friendly

License:GNU General Public License v3.0


Languages

Language:Scheme 55.4%Language:C 40.1%Language:Shell 3.5%Language:C++ 0.6%Language:Makefile 0.4%Language:SWIG 0.0%