News for hackers. Stuff that matters.
Re:Selfie – Tiny self-compiling C compiler, RISC-V emulator ... by CodiePetersen on Wednesday February 26, 2020 @08:31PM (#22429492)
No boolean operators?! That's an odd choice.
Re:Selfie – Tiny self-compiling C compiler, RISC-V emulator ... by christophkirsch 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.
Re:Selfie – Tiny self-compiling C compiler, RISC-V emulator ... by Koshkin on Thursday February 27, 2020 @04:18AM (#22431838)
It’s a cute little exercise, to implement the three Boolean operations using operations on integers.