Run-time options in ghc on Linux

Garner, Robin Robin.Garner@crsrehab.gov.au
Fri, 3 Jan 2003 11:03:33 +1100


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2B2BB.8E265320
Content-Type: text/plain;
	charset="iso-8859-1"

Ok,

$ cat >null.hs
module Main(main) where
main = return ()

$ ghc null.hs -o null
$ ./null +RTS -?
$

Cheers,

-----Original Message-----
From: Simon Marlow [mailto:simonmar@microsoft.com]
Sent: Friday, 20 December 2002 20:53
To: Garner, Robin; glasgow-haskell-users@haskell.org
Subject: RE: Run-time options in ghc on Linux



> The +RTS options don't seem to be working for me on Linux 
> (Redhat 7.2, ghc 5.04 and 5.04.1 installed via the .rpms).  
> 
> One of my programs will happily consume all available memory, 
> even though I have +RTS -M64M, and another program fails with
> 
> Stack space overflow: current size 1048576 bytes.
> Use `+RTS -Ksize' to increase it.
> 
> even though I'm using +RTS -K10M.

Well, it works here...  if you say "+RTS -?" does it print the help
text?  Could you post the exact command lines you're using to
compile/link the program, and the command line used to run it?

Cheers,
	Simon

------_=_NextPart_001_01C2B2BB.8E265320
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: Run-time options in ghc on Linux</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Ok,</FONT>
</P>

<P><FONT SIZE=2>$ cat &gt;null.hs</FONT>
<BR><FONT SIZE=2>module Main(main) where</FONT>
<BR><FONT SIZE=2>main = return ()</FONT>
</P>

<P><FONT SIZE=2>$ ghc null.hs -o null</FONT>
<BR><FONT SIZE=2>$ ./null +RTS -?</FONT>
<BR><FONT SIZE=2>$</FONT>
</P>

<P><FONT SIZE=2>Cheers,</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Simon Marlow [<A HREF="mailto:simonmar@microsoft.com">mailto:simonmar@microsoft.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Friday, 20 December 2002 20:53</FONT>
<BR><FONT SIZE=2>To: Garner, Robin; glasgow-haskell-users@haskell.org</FONT>
<BR><FONT SIZE=2>Subject: RE: Run-time options in ghc on Linux</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>&gt; The +RTS options don't seem to be working for me on Linux </FONT>
<BR><FONT SIZE=2>&gt; (Redhat 7.2, ghc 5.04 and 5.04.1 installed via the .rpms).&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; One of my programs will happily consume all available memory, </FONT>
<BR><FONT SIZE=2>&gt; even though I have +RTS -M64M, and another program fails with</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Stack space overflow: current size 1048576 bytes.</FONT>
<BR><FONT SIZE=2>&gt; Use `+RTS -Ksize' to increase it.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; even though I'm using +RTS -K10M.</FONT>
</P>

<P><FONT SIZE=2>Well, it works here...&nbsp; if you say &quot;+RTS -?&quot; does it print the help</FONT>
<BR><FONT SIZE=2>text?&nbsp; Could you post the exact command lines you're using to</FONT>
<BR><FONT SIZE=2>compile/link the program, and the command line used to run it?</FONT>
</P>

<P><FONT SIZE=2>Cheers,</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>Simon</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C2B2BB.8E265320--