
Do we have a native LLVM bitcode writer or is it still FFI?
------Original Message------
From: Thomas DuBuisson
Sender: glasgow-haskell-users-bounces@haskell.org
To: han
Cc: glasgow-haskell-users@haskell.org
Subject: Re: Compiling to ANSI C
Sent: Nov 7, 2009 09:56
If I were you, I'd look at using the recent LLVM backend work as a
means to translate Haskell -> ARM.
Thomas
On Sat, Nov 7, 2009 at 9:08 AM, han
I am (in fact we are) working to make Haskell code to run on an ARM Linux machine called GP2X Wiz, the open-source based handheld game console.
I wish to finally make a Haskell cross-compiler for ARM Linux, and for now I am trying to make
main = putStrLn "Hello, World!"
to run on the machine. At first I did
$ ghc hello.hs -o hello -fvia-C -keep-hc-files
and tried to use the generated hc file, but figured that the code is (or at least some code in the included headers is) x86-dependent.
I heard that the GHC can compile to ANSI C, and I want to use it as an intermediate code to ARM Linux before we can actually port the GHC to it.
Is there any specific option I have to give in order to generate an ANSI C code from a Haskell source code? _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users Sent from my Verizon Wireless BlackBerry

On Sat, Nov 7, 2009 at 11:16 AM,
Do we have a native LLVM bitcode writer or is it still FFI?
I was referring to a paper [1] I just ran into on reddit. I only skimmed it, but it seems they (or just he?) integrated LLVM as a new backend for GHC. Thomas [1] http://www.cse.unsw.edu.au/~pls/thesis/davidt-thesis.pdf
participants (2)
-
scooter.phd@gmail.com
-
Thomas DuBuisson