Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Native code and stack limit
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Berke Durak <durak@l...>
Subject: Re: [Caml-list] Native code and stack limit
On Tue, Sep 10, 2002 at 02:43:22PM +0200, Berke Durak wrote:
> I also have no ulimits on my machine.

Sorry I had an 8Mb limit on my stack. I thought "ulimit" would show all
limits. Not.  Shame on me.

I have also checked the latest CVS sources ; it seems that there are no
more references to the stack limit in asmrun.

May I suggest fixing the documentation as follows :
In the native-code compilation section, specify which OCAMLRUNPARAM options
are used ; stress that there is no Ocaml-imposed stack limit, that the stack
limit can be checked (at least under Linux) using "ulimit -a" and be set using
"ulimit -s", and that a stack overflow throws a Stack_overflow exception.

Would it be a luxury if the native startup code complained if the
OCAMLRUNPARAM-specified stack limit exceeds the system stack limit ?
-- 
Berke Durak
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners