|
|
|
|
|
by akireu
1611 days ago
|
|
Ah, I remember that one. Not a fond memory, either. The C-like language is a red herring: what you actually want is the codegen backend, and having any intermediaries between your AST and the codegen's IR will just add inefficiency and uncertainty. Ironically, there are parts of LLVM-like IR poking out of it: at page 43 of the spec pdf there's a table of instructions that have their counterparts in more or less any modern codegen. |
|
For example: https://blog.rust-lang.org/2016/04/19/MIR.html