Hello + Noobish question

Hi everyone!

I recently subscribed your mailing list, as I find the LLVM project
interesting. I've read the document known as "Compiler hacker's
introduction to LLV"[1], and I've learnt about LLVM-IR.

I was wondering about the impact of such a representation on mixing code
from different languages.

Suppose we have a huge library X written in language LX, which we would be
able to use from our program Y written in language LY. If both LX and LY
are supported by LLVM would that be difficult?

Regards
Giovanni

[1] http://www.aosabook.org/en/llvm.html

"Giovanni [dacav] Simoni" <simgidacav@gmail.com> writes:

Suppose we have a huge library X written in language LX, which we would be
able to use from our program Y written in language LY. If both LX and LY
are supported by LLVM would that be difficult?

LLVM by itself does not hide the differences that makes difficult to mix
different languages.

For instance, clang supports C and C++, but that does not mean that
using a C++ library from C code is any easier.