LLVM is written in C++ ?
Ola Fosheim Grøstad via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Wed Dec 16 04:22:30 PST 2015
On Wednesday, 16 December 2015 at 09:27:54 UTC, Jakob Jenkov
wrote:
> Is LLVM written in C++ ? If I was to use LLVM e.g. for an LLVM
> based D compiler (you already made one, I know), would my code
> have to be C++ ?
You might want to take a look at:
https://github.com/SDC-Developers/SDC
> From what I gather, you can compile any language to the LLVM
> assembly language, and then compile the LLVM assembly language
> to any platform after that (using standard compilers). Is that
> correct?
LLVM is geared towards C-like languages. It has added some
adjustments to enable compilation for specific non-C languages,
like special calling conventions. But it isn't suitable for all
kinds of language semantics, no.
More information about the digitalmars-d-ldc
mailing list