LLVM is written in C++ ?

Stefan Koch via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Wed Dec 16 02:19:03 PST 2015


On Wednesday, 16 December 2015 at 09:27:54 UTC, Jakob Jenkov 
wrote:
> Hi,
>
> I have a background in Java, so please forgive me for not 
> knowing this:
>
> 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++ ?
>
> I looked at the LLVM project shortly, and it looks really 
> interesting, even though I don't understand it all at this 
> point.
>
> 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?

Yes llvm is wirtten in c++. And yes you can compile any 
programming language to llvm ir.


More information about the digitalmars-d-ldc mailing list