Support for using libffi to implement FFI calls in GHCi (#631)
authorSimon Marlow <simonmar@microsoft.com>
Mon, 4 Feb 2008 16:10:53 +0000 (16:10 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Mon, 4 Feb 2008 16:10:53 +0000 (16:10 +0000)
commit937eb1f1386f12c729c6d819417fe81bc4786b9f
treea4301d9093d2859dc6256e271e26a561ebcffe07
parent8ded597b532eda747b5d911e6991cdb0013f77a1
Support for using libffi to implement FFI calls in GHCi (#631)
This means that an unregisterised build on a platform not directly
supported by GHC can now have full FFI support using libffi.

Also in this commit:

 - use PrimRep rather than CgRep to describe FFI args in the byte
   code generator.  No functional changes, but PrimRep is more correct.

 - change TyCon.sizeofPrimRep to primRepSizeW, which is more useful
compiler/Makefile
compiler/ghci/ByteCodeAsm.lhs
compiler/ghci/ByteCodeFFI.lhs
compiler/ghci/ByteCodeGen.lhs
compiler/ghci/ByteCodeInstr.lhs
compiler/ghci/LibFFI.hsc [new file with mode: 0644]
compiler/ghci/RtClosureInspect.hs
compiler/types/TyCon.lhs
rts/Interpreter.c