Hacker GitHub

← All repos

oriansj/stage0

View on GitHub ↗ ★ 1,071 Assembly

A set of minimal dependency bootstrap binaries

43 mentions on Hacker News by 28 people: 8 stories, 35 comments · first 2017-03-29 · latest 2026-10-10

Mentions per year 43 mentions · busiest year 2022 (11)
20082026
  1. What is this?: https://github.com/oriansj/stage0-posix-x86/blob/master/cc_x... It's part of a chain of minimal open-source x86 bootstrap/boot chain compiler source codes , where larger compilers (more complex ones) are compiled from their…
    comment by peter_d_sherman · 2026-10-10 · in stage0-POSIX-x86 / cc_x86.M1
  2. Very basic: https://github.com/oriansj/stage0
  3. Related: the stage0/stage1 series of hex-to-c compiler bootstrapping tools https://github.com/oriansj/stage0?tab=readme-ov-file and OTCC https://bellard.org/otcc/
    comment by ahazred8ta · 2026-02-08 · in SectorC: A C Compiler in 512 bytes (2023)
  4. In assembly, like stage0 does: https://github.com/oriansj/stage0
    comment by degamad · 2025-11-02 · in GHC now runs in the browser
  5. …I'm not really convinced that Forth would simplify things, but I'd love to be proven wrong! [1]: https://github.com/oriansj/stage0?tab=readme-ov-file#forth
    comment by ludocode · 2024-12-31 · in Show HN: Onramp Can Compile Doom
  6. …- in summary it turned out to be harder than that, at least for the authors of that project. 0. https://github.com/oriansj/stage0
    comment by tomatocracy · 2024-08-27 · in Bootstrappable Builds
  7. …the Bootstrappable Builds project, especially their stage0 projects: https://bootstrappable.org/ https://github.com/oriansj/stage0 https://github.com/oriansj/stage0-posix/
  8. …getting Linux bootstrapped. Also higher-level languages like Ocaml are getting bootstrapped. https://github.com/oriansj/stage0 https://github.com/fosslinux/live-bootstrap/ https://www.fiwix.org/ https://github.com/Ekdohibs/camlboot I'm not…
  9. you might be interested in https://github.com/oriansj/stage0 if you haven't seen it before
  10. …all the way from stage0 [0]. Curious if some group is also working on similar things for Nix. [0]: https://github.com/oriansj/stage0
  11. …which then builds GCC 4, which works its way up to modern GCC for C++... It's a fascinating read: https://github.com/oriansj/stage0 https://github.com/fosslinux/live-bootstrap/blob/master/part... Even if no one is "using" this it should…
    comment by ludocode · 2022-05-17 · in Common libraries and data structures for C
  12. The Goals section from the projects main page are pretty interesting: https://github.com/oriansj/stage0 This is a set of manually created hex programs in a Cthulhu Path to madness fashion. Which only have the goal of creating a…
    comment by loudmax · 2022-05-03 · in A minimal C compiler in x86 assembly
  13. …welcome corrections of any mistakes I may have made here. [1] https://www.gnu.org/software/mes/ [2] https://github.com/oriansj/stage0/blob/master/stage2/cc_x86.... [3] http://logs.guix.gnu.org/bootstrappable/2022-05-01.log
    comment by pflanze · 2022-05-03 · in A minimal C compiler in x86 assembly
  14. > but if you notice: https://github.com/oriansj/stage0/blob/master/stage2/cc_x86 .... > writing a C compiler in assembly that supports structs, unions, arrays, inline assembly and a bunch more was done in less than 24 hours by an…
    comment by Someone · 2022-05-03 · in A minimal C compiler in x86 assembly
  15. …on their IRC channel and got this response from oriansj: Well we did bootstrap a FORTH from hex: https://github.com/oriansj/stage0/blob/master/stage2/forth.s and we did bootstrap a garbage collecting Lisp from hex:…
    comment by pabs3 · 2022-05-03 · in A minimal C compiler in x86 assembly
  16. …code in hex0 plus all the necessary source code. https://savannah.nongnu.org/projects/stage0/ https://github.com/oriansj/stage0 https://ekaitz.elenq.tech/hex0.html https://bootstrappable.org/ https://github.com/fosslinux/live-bootstrap/blob…
  17. …(glibc, binutils, gcc) and using these tools you can bootstrap a full Guix Linux distro. [0]: https://github.com/oriansj/stage0
  18. Just use sin https://github.com/oriansj/stage0/blob/master/High_level_pro... It'll dehex any non-humanly used ASCII characters
    comment by z29LiTp5qUC30n · 2021-11-01 · in Trojan Source: Invisible Vulnerabilities
  19. The bootstrappable community already produced a solution for this: https://github.com/oriansj/stage0/blob/master/High_level_pro...
  20. …want to build trustworthy systems. 1. https://libreboot.org/ 2. https://www.bootstrappable.org 3. https://github.com/oriansj/stage0/ 4. https://www.gnu.org/software/mes/
    comment by guerrilla · 2021-10-20 · in Trustworthy Computing in 2021
  21. Relevant github repository: https://github.com/oriansj/stage0 I'm very fascinated about these kinds of things, although I understand zero of it. I believe this folder has some magic: https://github.com/oriansj/stage0/tree/master/stage0
    comment by markus_zhang · 2021-02-05 · in Stage0 Bootstrap for the Free Software
  22. But compilers are not hard but simple state machines. If you don't believe me, look at cc_x86 https://github.com/oriansj/stage0/blob/master/stage2/High_le...
    comment by z29LiTp5qUC30n · 2021-01-21 · in Compilers are hard
  23. >Are you referring to https://github.com/oriansj/stage0 ? Yep, that's the one. >More generally each language would need it’s own path from this basic assembler to a compiler implementing that language in C which doesn’t necessarily exist.…
  24. Are you referring to https://github.com/oriansj/stage0 ? This stage0 gets you a basic C compiler. An impressive achievement for sure. I don’t see how it really solves anything though. More generally each language would need it’s own path…
  25. It s missing solid pieces, like how to bootstrap a C compiler from nothing: https://github.com/oriansj/stage0 or how to use that C compiler to bootstrap the rest of the software: https://guix.gnu.org/
    comment by z29LiTp5qUC30n · 2020-08-10 · in GitHub Arctic Code Vault: Tech Tree
  26. The stage0 bootstrap is seriously interesting: https://github.com/oriansj/stage0 It starts with a system without firmware and an OS, just a <=1KB hex monitor that assembles special hex0 programs. In the next stage it bootstraps a more…
    comment by danieldk · 2020-04-12 · in Bored? How about trying a Linux speed run?
  27. …https://news.ycombinator.com/item?id=21201413 That article mentions the project I was thinking of: https://github.com/oriansj/stage0 Amazingly, it seems they are even aiming to boostrap some minimal hardware as well! Super cool.
    comment by xelxebar · 2019-10-10 · in Small C Compilers
  28. …is a Scheme implementation) if you want to go really minimalistic, see stage0, it's like 500 Bytes https://github.com/oriansj/stage0 details are in the article
    comment by sideeffffect · 2019-10-09 · in Guix Reduces Bootstrap Seed by Half
  29. …compiler toolchain. It is still a work in progress but the most promising attempt I have seen. [0] https://github.com/oriansj/stage0
    comment by rkeene2 · 2019-10-07 · in Collapse OS
  30. > pull requests can be made at https://github.com/oriansj/stage0 and https://gitlab.com/janneke/stage0 or patches/diffs can be sent via email to Jeremiah (at) pdp10 [dot] guru or join us on freenode’s #bootstrappable The main contributing…
  31. …when you correct for that it's a lot smaller. (Edit: At the time of submission the link went to https://github.com/oriansj/stage0/blob/master/Linux%20Bootst... with a description of "World's Smallest C Compiler")
  32. Clickable link: https://github.com/oriansj/stage0/blob/master/Linux%20Bootst...
  33. I say hardware and that 1072 bytes beats the shit out of that: https://github.com/oriansj/stage0/blob/master/stage1/SET.s
  34. …chain can be verified independently. http://bootstrappable.org/ Here is one bootstrapping effort: https://github.com/oriansj/stage0
  35. GCC is bootstrapped presumably with stage0 https://github.com/oriansj/stage0
    comment by earenndil · 2018-12-15 · in Bootstrapping Rust