[project @ 1999-10-19 11:01:24 by sewardj]
authorsewardj <unknown>
Tue, 19 Oct 1999 11:03:39 +0000 (11:03 +0000)
committersewardj <unknown>
Tue, 19 Oct 1999 11:03:39 +0000 (11:03 +0000)
commit0600f5d1cf4882ba6292ea5382e695270b1a6ba1
treed78d3c0a1357bb6904127fc5070cdcb568bd3989
parentf083bb77387d45ca64bc530f60160aee39589a2a
[project @ 1999-10-19 11:01:24 by sewardj]
Reimplement back-end for foreign import (calling out).

Return to a cleaned-up version of Alastair's callfun.S,
wherein an architecture and calling-convention specific
piece of assembly code is used to construct arguments and
then call the specified function, under the direction of
a type descriptor string.

Defined an interface to this function (universal_call_c)
which I hope will work regardless of 32-or-64 bitness,
endianness and calling convention.

Current implementation is for x86-linux only.
ghc/interpreter/translate.c
ghc/rts/Evaluator.c
ghc/rts/ForeignCall.c
ghc/rts/ForeignCall.h
ghc/rts/callfun.S [deleted file]
ghc/rts/universal_call_c.S [new file with mode: 0644]