3 ms·
Sorry to repeat myself, but this is what Clasp [1] does (I am not affiliated with it, I promise). I am in favor of integrating tightly with a compiler whenever
by junke 11y ago
Sorry to repeat myself, but this is what Clasp [1] does (I am not affiliated with it, I promise).
I am in favor of integrating tightly with a compiler whenever possible, but the selling point of c-amplify is to be independent from any compiler or your existing toolchain. This means that (1) you can work with a in-house proprietary compiler for specific hardware like a game console (author used to develop games) and (2) you code according to some stable C standard and not against a possibly evolving compiler. I suppose the LLVM API is quite stable, but things might break over time.
[1] https://github.com/drmeister/clasp https://github.com/drmeister/clasp
- pcwalton 11y agoGame consoles are all running architectures that are supported by LLVM. Many of their toolchains are LLVM [1]. The LLVM API breakage issue is legitimate, but not enough to outweigh the downsides of compiling to C. The definition of LLVM IR doesn't change that much for the C features. [1]: http://llvm.org/devmtg/2013-11/slides/Robinson-PS4Toolchain.pdf http://llvm.org/devmtg/2013-11/slides/Robinson-PS4Toolchain....