So, #C is a self-hosted language, which means that the compiler is written in C and you compile the new version of the compiler using the old version. What would happen is tomorrow all binary copies of C conpilers were lost? Would it be possible to re-run all the chain of compilers based on the source code of all the previous versions including the original ones written in assembly?

#Programming

@eliocamp I wonder how hard it would be to find a computer that that original Assembly to run on. I suppose that there are VMs

@eliocamp we could just use another language...

If all binaries were lost (including firmware stored in the motherboard), then no computer would be able to boot or run instructions at all. UEFI is necessary, and it's code stored in a binary format on every computer.

So, no, we couldn't run any toolchain or any program on any computer if tomorrow, "all binaries were lost".

If we retain hardware/firmware functionality, then it would be trivial to rebuild everything, imo.

@eliocamp Well, CollapseOs and DuskOS suggest using #Forth which I like. https://duskos.org/

Personally I would recommend using the opportunity to use just about any other language.

But if C is a must and we could find a running 8080 or Z80 there's always BDS C. Assembly source code still exists. https://www.bdsoft.com/resources/bdsc.html

Dusk OS

Working towards a source-based bootstrapping path to a GNU+Linux system]