[Glasgow-haskell-bugs] NCG name mangling
Sigbjorn Finne
sof at microsoft.com
Wed Oct 4 14:37:43 EDT 2000
Hi,
first time poster, long time listener :-) Possibly a known one, but the
NCG in 4.08.1 doesn't emit suitably decorated names when calling
out to 'foreign import'ed functions that use the stdcall calling convention,
e.g.,
sof$ cat foo.hs
module Foo { foreign import stdcall decorateMe :: IO () }
sof$ ghc-4.08.1 -S -c foo.hs -fglasgow-exts
sof$ grep 'call _decorate' foo.s
call _decorateMe
sof$
that should be 'call _decorateMe at 0'
The function to use to decorate stdcall names is CallConv.decorateExtName.
--sigbjorn
More information about the Glasgow-haskell-bugs
mailing list