I compiled a simple "hello world!" C program on FreeBSD, transfered the a.out.bc file to Windows, and executed it with an lli.exe that I built with Visual Studio. It worked!
Great News! Thanks for sharing it! Reid. On Wed, 2004-12-22 at 20:48, Jeff Cohen wrote:> I compiled a simple "hello world!" C program on FreeBSD, transfered the > a.out.bc file to Windows, and executed it with an lli.exe that I built > with Visual Studio. It worked! > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041222/a3941e69/attachment.sig>
On Wed, Dec 22, 2004 at 08:48:19PM -0800, Jeff Cohen wrote:> I compiled a simple "hello world!" C program on FreeBSD, transfered > the a.out.bc file to Windows, and executed it with an lli.exe that I > built with Visual Studio. It worked!Great news, but note that not all bytecode files are so portable. :) -- Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu
Turns out it wasn't using the JIT. It was running the interpreter. The X86 stuff wasn't being linked in. Alas, once I "fixed" that, it stopped working. The JIT couldn't resolve the symbol "printf" and failed. But the interpreter could resolve it. Misha Brukman wrote:>On Wed, Dec 22, 2004 at 08:48:19PM -0800, Jeff Cohen wrote: > > >>I compiled a simple "hello world!" C program on FreeBSD, transfered >>the a.out.bc file to Windows, and executed it with an lli.exe that I >>built with Visual Studio. It worked! >> >> > >Great news, but note that not all bytecode files are so portable. :) > > >