I think you need to install the 32bit ghc first, because you'll need all the 32bit haskell libs. At least I was able to use the 32bit ghc (version 6.8.2) on a 64 bit linux by changing the script in the bin directory from exec $GHCBIN $TOPDIROPT ${1+"$@"} to exec $GHCBIN -optc-m32 -opta-m32 -optl-m32 $TOPDIROPT ${1+"$@"}
(no -fvia-C) HTH Christian Vincent Hanquez schrieb: > 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 > following: > > $ 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: > > /usr/lib/ghc-6.10.4/include/Regs.h:235: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 ? > > Thanks, _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe