I wrote:

> I seem to be having trouble with 'foreign import ccall "wrapper"' 
> functions. It was crashing in combination with the Java VM: examination 
> with gdb revealed that the function created with 'foreign import ccall 
> "wrapper"' was changing register r13, and it looks like the JVM code that 
> called it was expecting r13 to be preserved.

GPR13 is indeed considered nonvolatile, so it looks like the JVM is 
correct and the function made by createAdjustor is wrong.

See
<http://developer.apple.com/techpubs/macosx/DeveloperTools/MachORuntime/2
rt_powerpc_abi/PowerPC_Cal_Conventions.html#BCIGEEGA>

-- 
Ashley Yakeley, Seattle WA

_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to