[cfe-dev] Orc Windows C++

Joshua Gerrard via cfe-dev cfe-dev at lists.llvm.org
Thu Oct 1 04:23:26 PDT 2015


Hello folks,

I’m developing an application that uses Orc JIT for C++, which works swimmingly on Mac OS X. However, the Windows version has been a battle and a half, and it’s now at the point where I need some assistance to progress.

The problem I’m having is “Relocation overflow” (related: https://llvm.org/bugs/show_bug.cgi?id=23228#c8 <https://llvm.org/bugs/show_bug.cgi?id=23228#c8>, see #8) … so I spoke to some clang developers who focussed on Windows at CppCon last week, and they gave me the following advice:
- Use ELF
    - Using this results in another issue about comdat sections, see here: https://root.cern.ch/phpBB3/viewtopic.php?t=19808 <https://root.cern.ch/phpBB3/viewtopic.php?t=19808>
- Stick with COFF, but use the large code model
    - No observed difference, seems to be the case because JITDefault is being used in the same way as Large, which would make sense
    - According to the clang developers I spoke to, Lang and Andy might have an interest in fixing this (would seem likely, as they’re the two commenters on the first issue I linked), since it’s better to use COFF on Windows than keep trying to work around it

Any ideas?

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151001/eea6eefa/attachment.html>


More information about the cfe-dev mailing list