oriansj/M2-Planet
View on GitHub ↗ ★ 135 C
The PLAtform NEutral Transpiler
9 mentions on Hacker News by 3 people: 0 stories, 9 comments · first 2017-11-27 · latest 2026-04-03
20082026
-
…another. The idea is to make shell.c compile from an even simpler C compiler, such as M2-Planet: https://github.com/oriansj/M2-Planet Let me remind you that current stage0 bootstraps tinyc from mes, which is an interpreted lisp. It's not…
comment by gaigalas · 2026-04-03 · in C89cc.sh – standalone C89/ELF64 compiler in pure portable shell -
but parsing command line arguments is a solved problem https://github.com/oriansj/M2-Planet/blob/master/cc.c#L40
comment by z29LiTp5qUC30n · 2020-08-17 · in Show HN: Structopt for C++ – Parse command line arguments by defining a struct -
…things about compilers is that they have gentle ramps for learning. If you start simple enough, https://github.com/oriansj/M2-Planet the rest just becomes just add one more thing... It even works if you start from zero:…
comment by z29LiTp5qUC30n · 2019-11-12 · in GNU Compiler Collection Internals [pdf] -
Yes, read this https://github.com/oriansj/M2-Planet and you will know how a cross platform self-hosting C compiler works in 1,982 lines of code and if you want to know how an assembler works read this:…
comment by z29LiTp5qUC30n · 2019-04-29 · in A Brief and Brisk Overview of Compiler Architecture -
The C version is alot easier to read: https://github.com/oriansj/M2-Planet
comment by z29LiTp5qUC30n · 2018-08-27 · in C compiler with support for structs written in Assembly -
…(called "mes") can be built with the M2 Planet transpiler: https://gitlab.com/janneke/mes/ https://github.com/oriansj/m2-planet
comment by rekado · 2018-06-06 · in Chezscheme 9.5 in Debian Testing -
Actually you missed a bunch. MesC is soon going to be bootstrapped by M2-Planet https://github.com/oriansj/M2-Planet Which is in the process of becoming bootstrapped via stage0 https://savannah.nongnu.org/projects/stage0/ Which bootstraps…
comment by z29LiTp5qUC30n · 2018-06-06 · in Chezscheme 9.5 in Debian Testing -
Posts like this make me think of this: https://github.com/oriansj/M2-Planet A C compiler with support for inline assembly, gotos, structs and weighs under 2000lines and is self hosting.
comment by z29LiTp5qUC30n · 2018-02-27 · in How Much Does a Compiler Cost? -
…it was to do the FORTH. Although right now they are trying to improve their C Compiler prototype https://github.com/oriansj/M2-Planet before they convert it to assembly
comment by z29LiTp5qUC30n · 2017-11-27 · in Lisp in fewer than 200 lines of C