> Hi all!  I don't read this mailing list, so please copy me on 
> responses
> if you think I need to see them.
> 
> Having some problems (all fixable) with the Solaris 4.2 GHC make.
> 
> 1.  Sun's cc can't handle empty structs.
>     Fix: add char empty; to all those structs.
> 2.  Sun's cc can't handle zero-length arrays:
>   StgWord            stack[0];
>     Fix: change the 0 to 1;

We don't support any C compilers except for gcc at the moment.  There are
two reasons for this:

        - we need gcc extensions for some of our performance tweaks,
          eg. global register variables and tail-calling.

        - we use some gcc extensions to make the RTS code look nicer.
          eg. zero-length arrays and named-field initialisers.

GHC can now build "unregisterised" code, that is code that doesn't use
global register variables and tail-calling (i.e. no asm mangler) which is
designed to work on pretty much any architecture with a C compiler.  Hence I
plan to remove the rest of the gcc extensions for use with unregisterised
code, but if you want the performance hacks (worth roughly 2x performance)
then you'll need gcc.

Cheers,
        Simon

Reply via email to