|
|
|
|
|
by convivialdingo
432 days ago
|
|
I’ve been modifying the the MIR c2mir JIT compiler to extend the c11 compiler to support simple classes, boxed strings(immutable, nun-nullable) with AOT support. Imagine if Java and C had a love child, basically. MIR is a fantastic piece of engineering. Honestly the hardest part is representing types. Having played around with other compilers it seems to be a typical problem. I’m stuck in the minutiae of representing highly structured complexity and defining behavior in c. I can understand why many languages have an intermediate compiler - it’s too much work and it will probably change over time. |
|
Is the project public? Really interested in the AOT support, I've always wanted to see its generated code but didn't find an easy way to dump it.