Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2002-09-10 (14:34)
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 Archives:
Bug reports: FAQ:
Beginner's list: