Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src




> On Jan 1, 2019, at 8:02 AM, Robert Swindells <rjs%fdy2.co.uk@localhost> wrote:
> 
> How does the usage of libLLVM from MesaLib make use of the LLVM headers
> at *runtime* ?
> 
> If they are not needed at runtime then why do they need to be installed
> on a target machine ?

What's needed on the target machine are the LLVM libraries, and the headers are needed to use the APIs provided by those libraries.  This isn't any different than the target system's libc needing the headers installed that define the interfaces to libc so that some application that also runs on the target can use functions from libc.  The headers are needed so that MesaLib can get the interface descriptions for functions in the LLVM libraries, which it links against.

LLVM is more than just a build-time host tool... more and more it is being used to provide system run-time services on the target system, and I'm not talking about what is traditionally referred to as the "compiler runtime" (e.g. the libgcc analogue) ... I'm referring to the compiler (and the virtual machine it implements) itself.

-- thorpej



Home | Main Index | Thread Index | Old Index