[LLVMdev] How to call native functions from bytecode run in JIT?

Ralph Corderoy ralph at inputplus.co.uk
Mon Jun 11 09:02:16 PDT 2007


Hi Jan,

> Calling printf works at least on OS X (I'm waiting for a reply
> whether this works on linux). If I call my native function it fails
> with PPCJITInfo.cpp:382: failed assertion `ResultPtr >= -(1 << 23) &&
> ResultPtr < (1 << 23) && "Relocation out of range!"'

I know nothing about this, but the failed assertion suggests the PPC
code generator can't cope with a constant that's bigger than expected at
that point.  Have you taken a look at PPCJITInfo.cpp:382?  It may shed
some light.

Cheers,


Ralph.




More information about the llvm-dev mailing list