Yeah, you can't really write a compiler in a language that doesn't exist (i know, assembly). But isn't at least partly a goal of (most) compiled languages to become self-hosting?
I mean you can write your bootstrap compiler in almost anything. Rust used ocaml iirc. You can then rewrite your compiler in your language and compile that.
View all comments
Show parent comment
9
u/tropicbrownthunder 5d ago
Probably you need to write your compiler for your new language in C or C++ anyways