News for hackers. Stuff that matters.
Re:C as an intermediate language (2012) by __alexs on Wednesday July 17, 2013 @09:56AM (#6057660)
In C you can write you run-time in any language that C can link to. Which is rather a lot of languages, and isn't tied to any particular compiler.
Re:C as an intermediate language (2012) by lmm on Wednesday July 17, 2013 @06:29PM (#6060478)
Yes and no. You can, but if you wrote your runtime in e.g. Haskell or Python you'd lose most of the advantages the article describes - debugging and tracing would be much more complicated for anything that called into the runtime, and profiling would become very difficult.

As a linkage format C is both too high-level (it provides a lot of facilities that are irrelevant to this use case - so while C may be ubiquitous now, I suspect it's much easier to implement an interpreter from scratch for something like LLVM bytecode) and too low-level (it exposes the host machine's memory model, making it inherently unportable). Use the right tool for the job - programming languages for writing programs in, intermediate representations for code for representing intermediate code.