Live data from Hacker News

Selfie – Tiny self-compiling C compiler, RISC-V emulator and hypervisor

selfie.cs.uni-salzburg.at

1–10 of 32 posts

Re: Selfie – Tiny self-compiling C compiler, RISC-V emulator and hypervisor

#4
post #3

I 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?

Re: Selfie – Tiny self-compiling C compiler, RISC-V emulator and hypervisor

#7
post #3

I 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?

Oberon is implemented in itself: http://www.projectoberon.com

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

#9
post #3

I 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.

at the bottom of the linked page the author explicitly references oberon as a source of inspiration for this project
Post reply on HN