Show HN: WIP C compiler in Go, inspired by 8cc
github.com
github.com
https://github.com/rui314/8cc Got things right, and I am trying continue with it's style.
I will be happy if a student can take my compiler and port it to his own invented cpu with a modest amount of work.
This one is more agreeable with my style (and I think the parser in it is amazingly concise and elegant):
e.g. Outputting data into the final data segments uses functions named o() and o32().
I'd love to find collaborators too, though I don't expect anyone to help until less trivial programs are running.
And good luck in your efforts, you've set some really serious goals.
I really hope someone writes a Go to C compiler in Go, as combined with my C compiler, they would create an entirely new and self hosting implementation of Go.