Ivan Krasin
2011-Oct-16 02:35 UTC
[LLVMdev] Is there a separate linker for LLVM in Windows?
On Sat, Oct 15, 2011 at 12:26 PM, Michael Spencer <bigcheesegs at gmail.com> wrote:> On Sat, Oct 15, 2011 at 7:38 AM, Thomson <lilotom at gmail.com> wrote: >> I just found that some samples used link.exe from Visual Studio to generate >> the final image, does LLVM has a replacement for link.exe to generate the >> final binary?I'm not related to the topic starter, but I see at least one huge disadvantage of the dependency on link.exe. W/o such a dependency it would be possible reliably generate Windows executables on Linux or Mac, which has its own benefits (e.g. distributed compilation) krasin>> >> -- >> Thanks >> Thomson > > Not currently, but a linker is being worked on. > > Is there any reason why link.exe is undesirable? You can also use ld from MinGW. > > - Michael Spencer > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Don Quixote de la Mancha
2011-Oct-16 06:33 UTC
[LLVMdev] Is there a separate linker for LLVM in Windows?
On Sat, Oct 15, 2011 at 7:35 PM, Ivan Krasin <krasin at google.com> wrote:> I'm not related to the topic starter, but I see at least one huge > disadvantage of the dependency on link.exe. > W/o such a dependency it would be possible reliably generate Windows > executables on Linux or Mac, which has its own benefits (e.g. > distributed compilation)GRUB, the Grand Unified Build that the Lilypond music engraving system uses does something like that. If you build the GNU Binutils in a cross-compilation mode you can do that. Our examples ought to at least mention that one can use Gnu ld on any platform that ld runs on to link executables for any platform it generates binraries for. Even better would be to provide instructions for building such a cross-linker. I'd love to write those instructions myself it but I've got a lot on my plate right now. -- Don Quixote de la Mancha Dulcinea Technologies Corporation Software of Elegance and Beauty http://www.dulcineatech.com quixote at dulcineatech.com
Óscar Fuentes
2011-Oct-16 14:02 UTC
[LLVMdev] Is there a separate linker for LLVM in Windows?
Don Quixote de la Mancha <quixote at dulcineatech.com> writes:> On Sat, Oct 15, 2011 at 7:35 PM, Ivan Krasin <krasin at google.com> wrote: >> I'm not related to the topic starter, but I see at least one huge >> disadvantage of the dependency on link.exe. >> W/o such a dependency it would be possible reliably generate Windows >> executables on Linux or Mac, which has its own benefits (e.g. >> distributed compilation) > > GRUB, the Grand Unified Build that the Lilypond music engraving system > uses does something like that. > > If you build the GNU Binutils in a cross-compilation mode you can do that. > > Our examples ought to at least mention that one can use Gnu ld on any > platform that ld runs on to link executables for any platform it > generates binraries for. > > Even better would be to provide instructions for building such a > cross-linker. I'd love to write those instructions myself it but I've > got a lot on my plate right now.Or just get it from your Linux distro. For instance, the mingw32-binutils package in Debian-based distros will provide a nice `ld' for cross-compiling to Windows.
Reasonably Related Threads
- [LLVMdev] Is there a separate linker for LLVM in Windows?
- [LLVMdev] Is there a separate linker for LLVM in Windows?
- [LLVMdev] Is there a separate linker for LLVM in Windows?
- [LLVMdev] Proposal: MCLinker - an LLVM integrated linker
- [LLVMdev] Proposal: MCLinker - an LLVM integrated linker