
Hi everybody: I would like to compile Haskell programs to run on Alpha architecture. As the target architecture is going to be simulated, I can't install GHC on an Alpha machine (because I don't have one). As most of you, I have got GHC installed and running on x86. Is there any way to cross-compile and generate Alpha code with my x86 compiler? Hope you can help me. Regards Cristian Perfumo

Cristian Perfumo wrote:
Hi everybody: I would like to compile Haskell programs to run on Alpha architecture. As the target architecture is going to be simulated, I can't install GHC on an Alpha machine (because I don't have one). As most of you, I have got GHC installed and running on x86. Is there any way to cross-compile and generate Alpha code with my x86 compiler?
At the moment, no. You can build a compiler that will generate .hc files that can be compiled on the target; this is how we do bootstrapping on a new architecture, but it's not the same as cross-compiling all the way to an executable. Cheers, Simon

how portable are the .hc files? do they depend on some library that
needs to be built for the target? Would they generate read only
position independent object code (no writable global variables)?
Thanks,
Anatoly
On 6/18/07, Simon Marlow
Cristian Perfumo wrote:
Hi everybody: I would like to compile Haskell programs to run on Alpha architecture. As the target architecture is going to be simulated, I can't install GHC on an Alpha machine (because I don't have one). As most of you, I have got GHC installed and running on x86. Is there any way to cross-compile and generate Alpha code with my x86 compiler?
At the moment, no. You can build a compiler that will generate .hc files that can be compiled on the target; this is how we do bootstrapping on a new architecture, but it's not the same as cross-compiling all the way to an executable.
Cheers, Simon _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

On Mon, Jun 18, 2007 at 05:49:29PM -0700, Anatoly Yakovenko wrote:
how portable are the .hc files? do they depend on some library that needs to be built for the target? Would they generate read only position independent object code (no writable global variables)?
Thanks, Anatoly
You're probably better off just installing GHC/Alpha. (You do have a simulator!) It won't take as long as getting hc to work :) Stefan
participants (4)
-
Anatoly Yakovenko
-
Cristian Perfumo
-
Simon Marlow
-
Stefan O'Rear