[cfe-dev] Stupid 64-bit divide question
David Chisnall
theraven at sucs.org
Thu Sep 30 04:05:55 PDT 2010
These functions should be found in compiler-rt:
http://compiler-rt.llvm.org/
David
On 30 Sep 2010, at 11:16, per at lumai.se wrote:
> Hi all,
>
> I am experimenting with compiling C code under Windows (MSVC env., _not_
> mingw) via COFF -> exe file using clang x.c -emit-llvm and llc
> -filetype=obj followed by linking using the MSVC linker. This works well
> except that some 64 bit arithmetic operations generate libcalls to
> functions like __divdi3 which have different names/uses in the MSVC
> runtime (i.e. __divdi3 ~= __alldiv in libcmt.lib). I assume that
> __divdi3 is something GNU specific. Is there a simple way to influence
> which libcalls are emitted? Any attempts to define my own __divdi3 seem
> to be ignored.
>
> cheers,
> Per Lindén
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-- Sent from my Apple II
More information about the cfe-dev
mailing list