Re: Compiling to ANSI C

2009-11-07 Thread Bulat Ziganshin
Hello han, Saturday, November 7, 2009, 8:08:51 PM, you wrote: > 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. seems that wizards are on holiday ATM, so i will help a little - ghc ports are divid

Re: Compiling to ANSI C

2009-11-07 Thread John Meacham
Jhc compiles to ANSI C and has been tested with other ARM targets and works fine. It may be suitable for your needs. John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/ ___ Glasgow-haskell-users mailing list Glasgow-haskell-users

Re: Compiling to ANSI C

2009-11-07 Thread scooter . phd
Believe it when it shows up in GHC pristine. --Original Message-- From: Thomas DuBuisson To: scooter@gmail.com Cc: han Cc: glasgow-haskell-users@haskell.org Subject: Re: Compiling to ANSI C Sent: Nov 7, 2009 11:28 On Sat, Nov 7, 2009 at 11:16 AM, wrote: > Do we have a native LLVM bi

Re: Compiling to ANSI C

2009-11-07 Thread Thomas DuBuisson
On Sat, Nov 7, 2009 at 11:16 AM, wrote: > 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/~p

Re: Compiling to ANSI C

2009-11-07 Thread scooter . phd
Do we have a native LLVM bitcode writer or is it still FFI? --Original Message-- From: Thomas DuBuisson Sender: glasgow-haskell-users-boun...@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

Re: ANNOUNCE: GHC 6.12.1 Release Candidate 1

2009-11-07 Thread Antoine Latter
On Sat, Nov 7, 2009 at 8:20 AM, Ian Lynagh wrote: > On Sun, Oct 18, 2009 at 03:20:21PM -0500, Antoine Latter wrote: >> >> Note that what was spliced in as [] is now being spliced in as "", >> which is incorrect. > > This has been filed as >    http://hackage.haskell.org/trac/ghc/ticket/3600 > and

Re: Compiling to ANSI C

2009-11-07 Thread Daniel Peebles
You can use -fvia-C and -keep-hc-files but the generated C code is pretty platform-dependent (at least in terms of word sizes and so on... it may be possible to port across platforms with the same word sizes?), and probably won't help you cross-compile. It also doesn't look much like any c code any

Re: Compiling to ANSI C

2009-11-07 Thread Thomas DuBuisson
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 wrote: > 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 > con

Compiling to ANSI C

2009-11-07 Thread 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

Re: ANNOUNCE: GHC 6.12.1 Release Candidate 1

2009-11-07 Thread Ian Lynagh
On Sun, Oct 18, 2009 at 03:20:21PM -0500, Antoine Latter wrote: > > Note that what was spliced in as [] is now being spliced in as "", > which is incorrect. This has been filed as http://hackage.haskell.org/trac/ghc/ticket/3600 and fixed. Thanks Ian

Re: 6.12.1 Release Candidate: profiling and libHSffi_p.a

2009-11-07 Thread Ian Lynagh
On Fri, Oct 16, 2009 at 04:17:11PM +0100, Neil Brown wrote: > > $ ghc -O1 -prof -auto-all --make CommsTime.hs > [1 of 1] Compiling Main ( CommsTime.hs, CommsTime.o ) > Linking CommsTime ... > /usr/bin/ld: cannot find -lHSffi_p > collect2: ld returned 1 exit status Thanks for the report