Follow

Did you ever try to work through Jack Crenshaw's "Let's build a compiler"? Remember the early point where you add a line of code and "CONGRATULATIONS! You have just written a working compiler!"?

Well, I just ported that one line (and the page of helpers backing it) to my own assembly lang, and it only took me 2 months to do it 😂

In my defense:

a) It's *thoroughly* unit-tested asm, and
b) I had to rethink the design of a couple of OS syscalls to make them testable.

github.com/akkartik/mu/tree/ma

@akkartik That's fantastic! Congratulations! What were the syscall changes you needed?

@kragen Thanks! I did a quick description at github.com/akkartik/mu/blob/71. So far I've only needed to think about `read()`, `write()` and `exit()`.

Sign in to participate in the conversation
Mastodon

Follow friends and discover new ones. Publish anything you want: links, pictures, text, video. This server is run by the main developers of the Mastodon project. Everyone is welcome as long as you follow our code of conduct!