[LLVMdev] LLVM binaries for Windows and more

Chris Lattner sabre at nondot.org
Wed Jun 13 10:26:39 PDT 2007


On Tue, 12 Jun 2007, Andreas Rumpf wrote:
>> No not yet, the recommended solution is to compute overflow manually with
>> arithmetic after you do the operations you need.  In time LLVM will be
>> extended to support this capability.
>>
>
> Ok, but I fear the optimizer is not smart enough to produce something like:
>
> a+b -->
>
>          mov eax, a
>          add eax, b
>          jno theEnd
>          call raiseOverflow
>        theEnd:
>
> It is not critical though - I turn off overflow checking after debugging anyway.

It definitely isn't right now.  When we get people generating lots of this 
code, suddenly it becomes worthwhile to optimize it :)

>> :)
>>
>> -Chris
>
> I volunteer. As soon as I get everything to work.
>
> Next problem: I now have the hello.bc file compiled. But how do I get an executable from this? I tried:
>
> C:\Eigenes\compiler\llvm-2.0\win32\release>llvm-ld -o=hellow.exe hellow.bc
> llvm-ld: Could not find llvm-stub.exe executable!
>
> So, I don't have "llvm-stub.exe". But why did it not build one? And what is the
> difference between "llvm-ld" and "llvm-link"? "llvm-link" does not work either.

Try passing -native.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list