Hacker GitHub

← All repos

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

Mentions per year 9 mentions · busiest year 2018 (4)
20082026
  1. …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…
  2. but parsing command line arguments is a solved problem https://github.com/oriansj/M2-Planet/blob/master/cc.c#L40
  3. …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]
  4. 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
  5. The C version is alot easier to read: https://github.com/oriansj/M2-Planet
  6. …(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
  7. 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
  8. 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?
  9. …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