[cfe-dev] LLVM/Clang and getting rid of the system linker (GNU ld or MSVC link.exe)

David Chisnall theraven at sucs.org
Mon Apr 18 02:25:05 PDT 2011


On 18 Apr 2011, at 00:19, Joerg Sonnenberger wrote:

> On Sun, Apr 17, 2011 at 04:29:34PM +0200, Ruben Van Boxem wrote:
>> 3. LLVM linker (+Clang?)  links together the IR files into one object
>> file (perhaps existing GNU .o or MSVC .obj files), executing its
>> link-time-optimizations in the process.
> 
> You can already do this by calling opt etc by hand.

It would be nice if we could have a toolchain description in clang that would do this, so when you invoke clang with a list of .o files, it links the ones that contain LLVM IR, optimises them, and then passes them off to the system linker.

David

-- Sent from my Apple II



More information about the cfe-dev mailing list