4 ms·
If you guys are interested in languages that compile to C, the best programming language I know of compiles to C and it is called Nim.
by ilaksh 11y ago
If you guys are interested in languages that compile to C, the best programming language I know of compiles to C and it is called Nim.
- felixangell1024 11y agoEDIT0: It appears I was wrong, for some reason I was under the impression DMD produced C code. Ignore this comment! :) Another language that is widely used by hobbyists and in production is D which, as far as I know, produces C code too. EDIT: I should say there are a few D compilers, DMD, LDC, and some other one by GNU(?). I think that DMD is the main compiler, but I could be wrong. LDC generates LLVM code.
- dom96 11y agoAre you sure? IIRC the main D compiler doesn't generate C.
- gmfawcett 11y agoThere are three compilers for D (DMD, GDC, LDC), but none of them uses C as an intermediary language.
- deleted 11y ago[deleted]
- bjz_ 11y agoWhy on earth would LDC use C when it has access to LLVM IR? Edit: A cursory look seems to suggest they do translate to IR: https://github.com/ldc-developers/ldc/tree/master/ir https://github.com/ldc-developers/ldc/tree/master/ir