Compiling large code with old machine

Hello I'm using GHC to compile around 700K of Haskell Code generated by HaXml. How I compile this code. My machine is Windows-XP(512MB RAM, 1.5GHz) running GHC-6.8.2. How much time it spend to compile this file? I spent more than 1 hour and it doesn't finished. What flags make compiling fast? I try with -H500m but dont't expect. It is possible GHC running endless cycle at compilation stage? Thanks. -- Don't hug that, Hugs ME! Samuel Silva

Hello Samuel, Tuesday, June 17, 2008, 4:19:47 PM, you wrote:
My machine is Windows-XP(512MB RAM, 1.5GHz) running GHC-6.8.2. What flags make compiling fast? I try with -H500m but dont't expect.
bad idea since OS needs memory too. -H400m would be much better -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

I would assume -O0, that is, turning off all optimizations, should make compilation faster Adrian Am 17.06.2008 um 14:19 schrieb Samuel Silva:
Hello
I'm using GHC to compile around 700K of Haskell Code generated by HaXml. How I compile this code. My machine is Windows-XP(512MB RAM, 1.5GHz) running GHC-6.8.2.
How much time it spend to compile this file? I spent more than 1 hour and it doesn't finished.
What flags make compiling fast? I try with -H500m but dont't expect.
It is possible GHC running endless cycle at compilation stage?
Thanks.
-- Don't hug that, Hugs ME! Samuel Silva _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

silva.samuel:
Hello
I'm using GHC to compile around 700K of Haskell Code generated by HaXml. How I compile this code. My machine is Windows-XP(512MB RAM, 1.5GHz) running GHC-6.8.2.
How much time it spend to compile this file? I spent more than 1 hour and it doesn't finished.
What flags make compiling fast? I try with -H500m but dont't expect.
It is possible GHC running endless cycle at compilation stage?
Hmm. Try -Onot -fasm -- Don

On Tue, 2008-06-17 at 13:19 +0100, Samuel Silva wrote:
I'm using GHC to compile around 700K of Haskell Code generated by HaXml. How I compile this code. My machine is Windows-XP(512MB RAM, 1.5GHz) running GHC-6.8.2.
How much time it spend to compile this file? I spent more than 1 hour and it doesn't finished.
Just out of curiosity, is all that 700K just one big file or did you split it up into multiple files? Are you using any "expensive" features? I'm not a GHC exert, but I'd expect things like type manipulations (e.g. phantom types) to be expensive (please correct me if this assumption is wrong). Bottom line: if compiling is so slow consider changing the code generator so the result is easier to process by GHC instead of fiddling with command line switches. Since you've chosen to generate the code it will probably change often and you'll run into this problem more than once. Regards, Niels

Samuel Silva
Hello
I'm using GHC to compile around 700K of Haskell Code generated by HaXml. How I compile this code. My machine is Windows-XP(512MB RAM, 1.5GHz) running GHC-6.8.2.
Samuel, You may not want to take this approach. I'm assuming you are generating haskell types from a (large) DTD. I went this way (admittedly quite a few years ago) for svg. In the end it was much easier to hand generate a few combinators to produced the svg. I don't know what your application is but it may worth thinking about an alternative to 700k loc. Dominic.

Hello Dominic, Wednesday, June 18, 2008, 11:17:07 AM, you wrote:
I'm using GHC to compile around 700K of Haskell Code generated by HaXml. may worth thinking about an alternative to 700k loc.
i think he means bytes, not lines :) -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
participants (6)
-
Adrian Neumann
-
Bulat Ziganshin
-
Dominic Steinitz
-
Don Stewart
-
Niels Aan de Brugh
-
Samuel Silva