Difference b / w llvm-ld and llvm-link

What is the difference between llvm-ld and llvm-link ? I assume that llvm-ld performs connection time optimization, and llvm-link does not. I'm right?

+8
c linux x86-64 clang llvm
source share
1 answer

llvm-ld is a replacement for the system linker, which supports both LLVM-bit and native code. It creates default executables for the bitcode (i.e., the resulting executable calls the bit code interpreter), but can also be used to create its own executables.

I do not use llvm-ld directly, since it is more convenient to use the llvmc and clang interfaces, which, if necessary, invoke the corresponding programs of the LLVM toolbar (note: llvmc was noted experimentally and appears that were removed in version 3.0).

llvm-link is a lower-level tool that combines several bitcode files into one. The documentation does not mention if it performs optimization but does not . The following optimization runs will be triggered when native code is generated.

+5
source share

All Articles