[Haskell-cafe] compiling 32 bits haskell program on 64 bits linux
tab at snarc.org
Tue Mar 16 10:40:53 EDT 2010
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,
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