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
20082026
-
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 -
Very basic: https://github.com/oriansj/stage0
comment by ffaccount2 · 2026-10-06 · in Mold Linker Version 3.0.0 Release – Rewritten in Rust -
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) -
In assembly, like stage0 does: https://github.com/oriansj/stage0
comment by degamad · 2025-11-02 · in GHC now runs in the browser -
…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 -
…- 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 -
…the Bootstrappable Builds project, especially their stage0 projects: https://bootstrappable.org/ https://github.com/oriansj/stage0 https://github.com/oriansj/stage0-posix/
comment by pabs3 · 2023-10-26 · in Running the "Reflections on Trusting Trust" Compiler -
▲ 10
Stage0: A minimal bootstrapping path to a C compiler capable of compiling GCCstory by goranmoomin · 2023-02-07 · 0 comments
-
…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…
comment by pabs3 · 2022-12-10 · in Goodbye to the C++ Implementation of Zig -
you might be interested in https://github.com/oriansj/stage0 if you haven't seen it before
comment by nektro · 2022-12-08 · in Goodbye to the C++ Implementation of Zig -
▲ 3
Stage0 – A set of minimal dependency bootstrap binariesstory by peter_d_sherman · 2022-08-18 · 0 comments
-
…all the way from stage0 [0]. Curious if some group is also working on similar things for Nix. [0]: https://github.com/oriansj/stage0
comment by xelxebar · 2022-08-17 · in Nixpacks takes a source directory and produces an OCI compliant image -
…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 -
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 -
…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 -
> 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 -
…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 -
▲ 199
A minimal C compiler in x86 assemblystory by pabs3 · 2022-05-03 · 76 comments
-
…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…
comment by pabs3 · 2022-03-19 · in My boundaries as an open source developer -
…(glibc, binutils, gcc) and using these tools you can bootstrap a full Guix Linux distro. [0]: https://github.com/oriansj/stage0
comment by spudlyo · 2021-11-30 · in Google Chromium, sans integration with Google -
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 -
The bootstrappable community already produced a solution for this: https://github.com/oriansj/stage0/blob/master/High_level_pro...
comment by z29LiTp5qUC30n · 2021-11-01 · in ‘Trojan Source’ Bug Threatens the Security of All Code -
…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 -
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 -
▲ 1
Gnu Guix Bootstrapped from Hexstory by z29LiTp5qUC30n · 2021-02-05 · 0 comments
-
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 -
>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.…
comment by ryukafalz · 2020-11-26 · in Reporting a user to WhatsApp forwards a copy of recent messages from that chat -
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…
comment by vlovich123 · 2020-11-26 · in Reporting a user to WhatsApp forwards a copy of recent messages from that chat -
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 -
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? -
▲ 2
C Compiler for AArch64 Written in Assemblystory by z29LiTp5qUC30n · 2020-02-03 · 0 comments
-
…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 -
…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 -
…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 -
> 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…
comment by shakna · 2019-06-24 · in Stage0 – A set of minimal C compiler bootstrap binaries -
…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")
comment by Dylan16807 · 2019-06-24 · in Stage0 – A set of minimal C compiler bootstrap binaries -
Clickable link: https://github.com/oriansj/stage0/blob/master/Linux%20Bootst...
comment by kjhughes · 2019-06-24 · in Stage0 – A set of minimal C compiler bootstrap binaries -
▲ 200
Stage0 – A set of minimal C compiler bootstrap binariesstory by z29LiTp5qUC30n · 2019-06-24 · 68 comments
-
I say hardware and that 1072 bytes beats the shit out of that: https://github.com/oriansj/stage0/blob/master/stage1/SET.s
comment by z29LiTp5qUC30n · 2019-03-07 · in Show HN: Two Kilo – A curses-based text editor in 2kb of code -
…chain can be verified independently. http://bootstrappable.org/ Here is one bootstrapping effort: https://github.com/oriansj/stage0
comment by jpfr · 2019-01-22 · in CompCert – A formally verified C compiler -
GCC is bootstrapped presumably with stage0 https://github.com/oriansj/stage0
comment by earenndil · 2018-12-15 · in Bootstrapping Rust -
▲ 1
Stage0: a set of minimal dependency bootstrap binariesstory by earenndil · 2018-12-08 · 0 comments
-
▲ 3
Bootstrapping a Garbage collected lisp starting with only a 280byte hex monitorstory by 34UdrveAMH · 2017-03-29 · 1 comment