4 ms·
I have used CIL [1] to generate C code before. Not exactly its main purpose, but it works nonetheless. Essentially you generate a C-ast and then pretty print i
by shadowfox 9y ago
I have used CIL [1] to generate C code before. Not exactly its main purpose, but it works nonetheless.
Essentially you generate a C-ast and then pretty print it. It has some limitations though.
[1] https://github.com/cil-project/cil https://github.com/cil-project/cil