[Haskell-cafe] compiling 32 bits haskell program on 64 bits linux

Vincent Hanquez tab at snarc.org
Tue Mar 16 10:40:53 EDT 2010

Hi Cafe,

I was looking for a way to generate 32 bits haskell binary on a 64 bits linux.
I've looked at the user guide and tried to use the -fvia-C with -optc -m32 but
the generated C file doesn't compile with lots of error messages like the

$ ghc -o hello hello.hs -fvia-C -optc "-m32"
In file included from /usr/lib/ghc-6.10.4/include/Stg.h:206,
                 from /tmp/ghc15772_0/ghc15772_0.hc:3:0: 

     error: invalid register name for ‘R4’

I can't find any others parameters that seems to do anythings about the code
generation or around the C compiler. so, does anyone knows if it's possible ? or
have some documentation/link about this kind of things ?


More information about the Haskell-Cafe mailing list