GHC code generation

Keith Wansbrough Keith.Wansbrough@cl.cam.ac.uk
Thu, 11 Sep 2003 11:34:03 +0100


> There is no C-- backend for GHC (search the mailing list and you'll see 
> Simon asking someone to try to do this :P).  GHC either generates code by 
> itself, or generates normal C code (with -fvia-c or -O2, iirc) and then 
> uses GCC to compile this.

Ah... for some value of "normal"!  It's very GCC-specific, and there
is a nasty hack that it does to the output assembly code to rearrange
function entry points so that the info table lives directly before the
entry point.  It's certainly not ANSI or C99 code.  But it's not C--
either.

--KW 8-)