christophkirsch
christophkirsch on Hacker News
Re:Selfie – Tiny self-compiling C compiler, RISC-V emulator and hyperv...
on Thursday February 27, 2020 @04:25AM (#22431866)
The language is a strict subset of C modulo some small semantical differences that are relevant for bootstrapping, see https://github.com/cksystemsteaching/selfie/blob/master/sema...
Re:Selfie – Tiny self-compiling C compiler, RISC-V emulator and hyperv...
on Thursday February 27, 2020 @04:05AM (#22431781)
@all Thanks a lot for your awesome comments and feedback.
Besides compiler, emulator, and hypervisor, there is a symbolic execution engine in selfie that we are working on and would love to get feedback from you. The goal is to teach, eventually, a more formal approach when reasoning about correctness already in undergraduate classes. But the engine is also a research vehicle, especially the bounded model checking part.
Re:Selfie – Tiny self-compiling C compiler, RISC-V emulator and hyperv...
on Thursday February 27, 2020 @03:57AM (#22431752)
Thanks a lot, @amasad
I pulled your PR and even plan to use repl.it in the upcoming compiler class.
Re:Selfie – Tiny self-compiling C compiler, RISC-V emulator and hyperv...
on Thursday February 27, 2020 @03:51AM (#22431728)
We chose not to include support of Boolean operators and instead ask the students to implement that as part of an assignment. We use a self-grader for that. There is an assignment for bitwise Boolean operators. The assignment for logical Boolean operators with lazy evaluation is work in progress.