<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>I have built GHC 7.8.4 on windows 32-bit a while back so feel free to use
it until official build becomes available.</DIV>
<DIV> </DIV>
<DIV><A title=https://www.dropbox.com/s/z77nry3l6kvos9f/ghc-7.8.4-win32.7z?dl=0
href="https://www.dropbox.com/s/z77nry3l6kvos9f/ghc-7.8.4-win32.7z?dl=0">https://www.dropbox.com/s/z77nry3l6kvos9f/ghc-7.8.4-win32.7z?dl=0</A></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=carter.schonwald@gmail.com
href="mailto:carter.schonwald@gmail.com">Carter Schonwald</A> </DIV>
<DIV><B>Sent:</B> Tuesday, March 10, 2015 3:09 AM</DIV>
<DIV><B>To:</B> <A title=K.Bleijenberg@lijbrandt.nl
href="mailto:K.Bleijenberg@lijbrandt.nl">Kees Bleijenberg</A> </DIV>
<DIV><B>Cc:</B> <A title=ghc-devs@haskell.org
href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</A> </DIV>
<DIV><B>Subject:</B> Re: [Haskell-cafe] ghc -O2 out of memory</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV dir=ltr>
<DIV>
<DIV>there SHOULD be a 32bit 7.8.4 build available somewhere for windows, and if
not , thats a real problem! I'm gonna shift this thread to ghc-devs, because
that *should* get addressed<BR><BR></DIV>@ghc-devs, how can we help this user
get ahold of a 32bit windows 7.8.4 build? (eg, why do we not have one available
yet?)<BR><BR></DIV>-Carter<BR></DIV>
<DIV class=gmail_extra>
<DIV> </DIV>
<DIV class=gmail_quote>On Mon, Mar 9, 2015 at 4:13 AM, Kees Bleijenberg <SPAN
dir=ltr><<A href="mailto:K.Bleijenberg@lijbrandt.nl"
target=_blank>K.Bleijenberg@lijbrandt.nl</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV lang=NL vlink="purple" link="blue">
<DIV>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d'>Thanks
for your answer. <U></U><U></U></SPAN></P>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d'>I
also use ghc to create 32 bits dll’s. 7.8.4 is 64 bits GHC and can’t create 32
bits dll’s (?). This means I have to install 7.8.3 and 7.8.4 on the same
Windows machine. Is this possible? <U></U><U></U></SPAN></P>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d'><U></U><U></U></SPAN> </P>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 11pt; FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d'>Kees<U></U><U></U></SPAN></P>
<P class=MsoNormal><B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"'>Van:</SPAN></B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"'> Carter Schonwald
[mailto:<A href="mailto:carter.schonwald@gmail.com"
target=_blank>carter.schonwald@gmail.com</A>] <BR><B>Verzonden:</B> zaterdag 7
maart 2015 20:02<BR><B>Aan:</B> Kees Bleijenberg<SPAN><BR><B>Onderwerp:</B>
Re: [Haskell-cafe] ghc -O2 out of memory<U></U><U></U></SPAN></SPAN></P>
<P class=MsoNormal><U></U><U></U> </P>
<P>Upgrade to ghc 7.8.4, theres some known bugs in O2 optimization that
resulted in excessive memory usage that are fixed in 7.8.4<U></U><U></U></P>
<DIV>
<DIV class=h5>
<P>You'll still have painful compilation times with a 30kloc module , but
memory usage should be physically possible after the upgrade.
<U></U><U></U></P>
<DIV>
<P class=MsoNormal>On Mar 7, 2015 10:58 AM, "Kees Bleijenberg" <<A
href="mailto:K.Bleijenberg@lijbrandt.nl"
target=_blank>K.Bleijenberg@lijbrandt.nl</A>> wrote:<U></U><U></U></P>
<DIV>
<DIV>
<P class=MsoNormal>I’ve written a program that reads a Excel file, parses the
contents and generates a haskell module. Every cell in the xls has it’s own
function in the module. This worked fine. <U></U><U></U></P>
<P class=MsoNormal>Now I have a bigger xls. The resulting module Xls.hs
contains 30000 lines haskell code (without comment). I created a testprogram
test.hs that calculates and prints one cell.<U></U><U></U></P>
<P class=MsoNormal>I did ghc --make test.hs and everything works fine.
The generated execuatable is very slow.<U></U><U></U></P>
<P class=MsoNormal>I did ghc --make –O2 test.hs. The compilations takes 15
minutes and aborts with ‘ghc: out of memory’. I’am working on Win
7 64 bits , ghc version = 7.8.3.<U></U><U></U></P>
<P class=MsoNormal><U></U><U></U> </P>
<P class=MsoNormal>What can I do to fix this? I do need –O2. I found with
smaller xls’s that optimization speeds up the executable
dramatically.<U></U><U></U></P>
<P class=MsoNormal>Before I start experimenting, does it help to split up the
xls .hs in seperate files? I.e. the cells that refer to other cells and
cells that don’t refer to other cells. Or will I still get ‘out of memory’
because the optimization is global?<U></U><U></U></P>
<P class=MsoNormal><U></U><U></U> </P>
<P class=MsoNormal>Kees<U></U><U></U></P>
<P class=MsoNormal><U></U><U></U> </P></DIV></DIV>
<P class=MsoNormal
style="MARGIN-BOTTOM: 12pt"><BR>_______________________________________________<BR>Haskell-Cafe
mailing list<BR><A href="mailto:Haskell-Cafe@haskell.org"
target=_blank>Haskell-Cafe@haskell.org</A><BR><A
href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe"
target=_blank>http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</A><U></U><U></U></P></DIV></DIV></DIV>
<P class=MsoNormal>No virus found in this message.<BR>Checked by AVG - <A
href="http://www.avg.com" target=_blank>www.avg.com</A><BR>Version:
2015.0.5751 / Virus Database: 4299/9258 - Release Date:
03/09/15<U></U><U></U></P></DIV></DIV></BLOCKQUOTE></DIV>
<DIV> </DIV></DIV>
<P>
<HR>
_______________________________________________<BR>ghc-devs mailing
list<BR>ghc-devs@haskell.org<BR>http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs<BR></DIV></DIV></DIV></BODY></HTML>