[project @ 1999-10-26 17:27:25 by sewardj]
Add foreign import/export implementations for x86 stdcall convention. Make parser notice calling conventions on f-i and f-x declarations, check they are supported on the platform Hugs is compiled on. Pass them all the way through the code generator to the interpreter. Allow f-i/f-x decls to omit the calling convention, in which case ccall is used. Remove calling convention from all such decls in the Prelude so it will work on any platform.
Showing
- ghc/includes/Assembler.h 5 additions, 3 deletionsghc/includes/Assembler.h
- ghc/interpreter/connect.h 7 additions, 4 deletionsghc/interpreter/connect.h
- ghc/interpreter/dynamic.c 37 additions, 2 deletionsghc/interpreter/dynamic.c
- ghc/interpreter/dynamic.h 4 additions, 3 deletionsghc/interpreter/dynamic.h
- ghc/interpreter/input.c 9 additions, 2 deletionsghc/interpreter/input.c
- ghc/interpreter/lib/Prelude.hs 22 additions, 21 deletionsghc/interpreter/lib/Prelude.hs
- ghc/interpreter/parser.y 8 additions, 6 deletionsghc/interpreter/parser.y
- ghc/interpreter/static.c 18 additions, 12 deletionsghc/interpreter/static.c
- ghc/interpreter/storage.c 3 additions, 2 deletionsghc/interpreter/storage.c
- ghc/interpreter/storage.h 3 additions, 2 deletionsghc/interpreter/storage.h
- ghc/interpreter/translate.c 51 additions, 16 deletionsghc/interpreter/translate.c
- ghc/lib/hugs/Prelude.hs 22 additions, 21 deletionsghc/lib/hugs/Prelude.hs
- ghc/rts/Assembler.c 12 additions, 6 deletionsghc/rts/Assembler.c
- ghc/rts/Bytecodes.h 6 additions, 4 deletionsghc/rts/Bytecodes.h
- ghc/rts/Disassembler.c 10 additions, 6 deletionsghc/rts/Disassembler.c
- ghc/rts/Evaluator.c 12 additions, 6 deletionsghc/rts/Evaluator.c
- ghc/rts/ForeignCall.c 139 additions, 57 deletionsghc/rts/ForeignCall.c
- ghc/rts/ForeignCall.h 5 additions, 3 deletionsghc/rts/ForeignCall.h
- ghc/rts/universal_call_c.S 101 additions, 26 deletionsghc/rts/universal_call_c.S
Loading
Please register or sign in to comment