1 Subject: Mes 0.10 released
3 I am pleased to announce the release of Mes 0.10, representing 82
4 commits over 6 weeks. Mescc now compiles a bootstrappable-modified
5 TinyCC into a mes-tcc that in turn can successfully compile a trivial
10 Mes[0] aims to create full source bootstrapping for GuixSD[1] as
11 part of the bootstrappable builds[2] project.
13 It currently consists of a mutual self-hosting [close to Guile-]
14 Scheme interpreter prototype in C and a Nyacc-based C compiler in
15 [Guile] Scheme. This C prototype will be rewritten in stage0[3]
16 M1 assembly (or possibly stage2 slow-LISP, or ...).
18 The Scheme interpreter prototype (mes.c) has a Garbage Collector,
19 a library of loadable Scheme modules-- notably Dominique Boucher's
20 LALR[4], Pre-R6RS portable syntax-case[5] with R7RS ellipsis, Matt
21 Wette's Nyacc[6], Guile's PEG[7] --and test suite just barely
22 enough to support a simple REPL (repl.mes) and simple C-compiler
25 The simple C compiler can compile a modified TinyCC[8] that is
26 starting to work! A gcc-compiled tcc is known[9] to compile GCC.
28 Mes is inspired by The Maxwell Equations of Software: LISP-1.5[10]
29 -- John McCarthy page 13, GNU Guix's source/binary packaging
30 transparency and Jeremiah Orians's stage0 ~300 byte self-hosting
35 git clone https://gitlab.com/janneke/mes
37 wget https://gitlab.com/janneke/mes/repository/archive.tar.gz?ref=v0.10 -O mes-0.10.tar.gz
39 Mes runs from the source tree and can also be built, packaged and
40 installed in Guix[SD] by the usual
42 guix package -f guix.scm
44 * Changes in 0.10 since 0.9
49 *** Mes now includes M1 sources for full source bootstrapping up to tcc.
50 *** Mescc now depends on Nyacc 0.81.0.
51 *** Mescc now compiles a mes-tcc that compiles a trivial C to a running a.out.
52 *** Mescc now supports several (as used my tinycc) struct by value assignments.
53 *** Mescc now has _start in a separate crt1.c.
54 *** Mescc now supports initializer arithmetic.
55 *** Mescc now supports arrays of struct of arbitrary size.
56 *** Mescc now supports pointer arithmetic.
57 *** Mescc now defines __i386__, __linux__.
58 *** Mescc now supports --*p, ++*p.
59 *** Mescc now supports int foo[bar] = {baz,...}.
60 *** Mescc now supports \x00 in strings in M1.
61 *** Mescc now supports complex enum expressions. Thanks, rain1!
62 *** Mescc now supports short.
63 *** Mescc now supports foo.bar = foo.baz = bla.
64 *** Mescc now supports foo = bar < baz and comparison permutations.
65 *** Mescc now supports (anonymous) structs in unions.
66 *** Mescc now writes M1 strings if possible.
67 **** 2 improved mlibc functions
69 **** 13 new mlibc functions
70 fclose, fgetc, fprintf, fwrite, memcpy, memmove, memset, snprintf, strcat,
71 strchr, strrchr, strtoull, vnsprintf.
72 **** 15 new tinycc-support tests
73 76-pointer-arithmetic.c, 77-pointer-assign.c, 78-union-struct.c,
74 79-int-array.c, 7a-struct-char-array.c, 7b-struct-int-array.c,
75 7c-dynarray.c, 7d-cast-char.c, 7e-struct-array-access.c,
76 7f-struct-pointer-arithmetic.c, 7g-struct-byte-word-field.c,
77 7h-struct-assign.c, 7i-struct-struct.c, 7j-strtoull.c,
79 ** Noteworthy bug fixes
80 *** Mescc has many fixes for foo.bar[baz], foo[bar].baz with ./-> permutations.
81 *** Many bugs and limitations in mescc have been fixed and removed.
86 [0] https://gitlab.com/janneke/mes
87 [1] https://www.gnu.org/software/guix
88 [2] http://bootstrappable.org
89 [3] https://github.com/oriansj/stage0
90 [4] https://github.com/schemeway/lalr-scm
91 [5] https://www.cs.indiana.edu/chezscheme/syntax-case/old-psyntax.html
92 [6] https://www.nongnu.org/nyacc/
93 [7] https://www.gnu.org/software/guile/docs/master/guile.html/PEG-Parsing.html
94 [8] https://gitlab.com/janneke/tinycc
95 [9] https://lists.gnu.org/archive/html/tinycc-devel/2017-05/msg00103.html
96 [10] http://www.softwarepreservation.org/projects/LISP/book/LISP%25201.5%2520Programmers%2520Manual.pdf