cvs commit: fptools/ghc/docs/comm index.html
Manuel M. T. Chakravarty
Sun, 12 Aug 2001 19:10:53 +1000
"Simon Marlow" <firstname.lastname@example.org> wrote,
> > Thu, 9 Aug 2001 18:47:40 -0700, Manuel Chakravarty
> > <email@example.com> pisze:
> > > Added SimonM's explanation about f.e.d. stubs.
> > I don't understand the explanation. Why the code is written to a
> > separate file instead of *.hc?
> Unfortunately I don't think we can do that - you can't write a normal C
> function in a .hc file, because the mangler tends to, well, mangle it.
From my last inspection of the mangler I remember that it
just throws away functions whose name doesn't fit any of its
patterns. It should be easy to just not throw away these
functions - in fact that's what I changed it to do on
x86/Solaris as some system .h files contain function
definitions on that platform. I can't see why this
shouldn't be generally possible.