| ▲ | xorvoid 4 hours ago | |||||||||||||
I may be the author.. enjoy! It was an absolute blast making this! | ||||||||||||||
| ▲ | JamesTRexx 3 hours ago | parent | next [-] | |||||||||||||
Would and how much would it shrink when if, while, and for were replaced by the simple goto routine? (after all, in assembly there is only jmp and no other fancy jump instruction (I assume) ). And PS, it's "chose your own adventure". :-) I love minimalism. | ||||||||||||||
| ||||||||||||||
| ▲ | veltas 3 hours ago | parent | prev | next [-] | |||||||||||||
This is very nice. I'm currently writing a minimalist C compiler although my goal isn't fitting in a boot sector, it's more targeted at 8-bit systems with a lot more room than that. This is a great demonstration of how simple the bare bones of C are, which I think is one reason I and many others find it so appealing despite how Spartan it is. C really evolved from B which was a demake of Fortran, if Ken Thompson is to be trusted. | ||||||||||||||
| ▲ | einpoklum 3 hours ago | parent | prev [-] | |||||||||||||
An interesting use case - for the compiler as-is or for the essentiall idea of barely-C - might be in bootstrapping chains, i.e. starting from tiny platform-specific binaries one could verify the disassembly of, and gradually building more complex tools, interpreters, and compiler, so that eventually you get to something like a version of GCC and can then build an entire OS distribution. Examples: | ||||||||||||||
| ||||||||||||||