Selfie – Tiny self-compiling C compiler, RISC-V emulator and hypervisor
selfie.cs.uni-salzburg.at
Selfie – Tiny self-compiling C compiler, RISC-V emulator and hypervisor
1–10 of 32 posts
Re: Selfie – Tiny self-compiling C compiler, RISC-V emulator and hypervisor
#2(Such links are for the curious. Reposts are ok after about a year: https://news.ycombinator.com/newsfaq.html)
Re: Selfie – Tiny self-compiling C compiler, RISC-V emulator and hypervisor
#3Re: Selfie – Tiny self-compiling C compiler, RISC-V emulator and hypervisor
#4I think Oberon would be a better candidate for this than C. You could get a tiny and extremely fast compiler for a full-featured programming language.
Re: Selfie – Tiny self-compiling C compiler, RISC-V emulator and hypervisor
#5Re: Selfie – Tiny self-compiling C compiler, RISC-V emulator and hypervisor
#6Re: Selfie – Tiny self-compiling C compiler, RISC-V emulator and hypervisor
#7I think Oberon would be a better candidate for this than C. You could get a tiny and extremely fast compiler for a full-featured programming language.
I'm looking into self-hosting compilers, is there a good link for Oberons code that achieves this? Or you just are mentioning that Oberon would probably be able to if one were implemented?
The implementation includes the hardware too.
Taken together, the system including single-tasking OS, windowing system and Oberon takes about 9000 lines of code.
Re: Selfie – Tiny self-compiling C compiler, RISC-V emulator and hypervisor
#8Re: Selfie – Tiny self-compiling C compiler, RISC-V emulator and hypervisor
#9I think Oberon would be a better candidate for this than C. You could get a tiny and extremely fast compiler for a full-featured programming language.