Hello!
On Wed, May 24, 2000 at 08:15:24AM -0700, Julian Seward (Intl Vendor) wrote:
> | Anybody knows how to generate a portable C code through GHC ?
> It depends what you mean by portable.
> GHC can produce C code which you can compile with gcc, without
> special support -- we call this "unregisterised" code. This code
> needs some GNU extensions -- named initialisers, zero length arrays
> and (I think) support for 64-bit arithmetic. So it is not strict
> ANSI C89 code, although it looks all 3 extensions will be the
> ANSI C9X standard.
That'd be a nice foundation for hc-boot so you don't have to have
arch specific hc archives. That'd be especially much cleaner for
a multiplatform BSD port/pkgsrc (OpenBSD/NetBSD).
> I also believe (not sure, tho) that you'd still need to configure
> GHC's runtime for word size (32 vs 64 bits) and endiannness, although
> that isn't a problem.
That could be handled by configure in the hc archive.
> [...]
Kind regards,
Hannah.