Tue Apr  8 11:34:34 PDT 2008  Simon Marlow <[EMAIL PROTECTED]>
  * Import libffi-3.0.4, and use it to provide FFI support in GHCi
  
  This replaces the hand-rolled architecture-specific FFI support in
  GHCi with the standard libffi as used in GCJ, Python and other
  projects.  I've bundled the complete libffi-3.0.4 tarball in the
  source tree in the same way as we do for GMP, the difference being
  that we always build and install our own libffi regardless of whether
  there's one on the system (it's small, and we don't want
  dependency/versioning headaches).
  
  In particular this means that unregisterised builds will now have a
  fully working GHCi including FFI out of the box, provided libffi
  supports the platform.
  
  There is also code in the RTS to use libffi in place of
  rts/Adjustor.c, but it is currently not enabled if we already have
  support in Adjustor.c for the current platform.  We need to assess the
  performance impact before using libffi here too (in GHCi we don't care
  too much about performance).

    M ./Makefile -3 +3
    M ./compiler/Makefile -6 +4
    M ./compiler/ghci/ByteCodeFFI.lhs -848 +1
    M ./compiler/ghci/ByteCodeGen.lhs -10
    M ./compiler/ghci/LibFFI.hsc -8
    A ./libffi/
    A ./libffi/Makefile
    A ./libffi/libffi-3.0.4.tar.gz
    M ./rts/Adjustor.c -3 +3
    M ./rts/Interpreter.c -16 +1
    M ./rts/Linker.c +18
    M ./rts/Makefile -10 +13
    M ./rts/package.conf.in -3 +2

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20080408183434-760e2-101083eb38e2e6faf317ed1f35a9e872dcb84fef.gz

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to