From: "Eric C. Cooper" <ecc@cmu.edu>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Right recursion with ocamlyacc
Date: Tue, 15 Feb 2005 21:28:09 -0500 [thread overview]
Message-ID: <20050216022809.GA19827@localhost> (raw)
In-Reply-To: <200502160210.46048.jon@jdh30.plus.com>
On Wed, Feb 16, 2005 at 02:10:45AM +0000, Jon Harrop wrote:
> Now, I don't know much about yacc internals but I'm curious as to why this
> would be. Does g++ simply consume much bigger stack frames as it recurses
> (>10x the size?) running out much earler, or is there another reason?
See section 5.9 of the Bison info file:
By defining the macro `YYMAXDEPTH', you can control how deep the
parser stack can become before a stack overflow occurs. Define
the macro with a value that is an integer. This value is the
maximum number of tokens that can be shifted (and not reduced)
before overflow. It must be a constant expression whose value is
known at compile time.
[...]
The default value of `YYMAXDEPTH', if you do not define it, is
10000.
--
Eric C. Cooper e c c @ c m u . e d u
next prev parent reply other threads:[~2005-02-16 2:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-16 2:10 Jon Harrop
2005-02-16 2:28 ` Eric C. Cooper [this message]
2005-02-16 3:58 ` [Caml-list] " Markus Mottl
2005-02-16 4:35 ` Jon Harrop
2005-02-16 9:18 ` Radu Grigore
2005-02-18 15:27 ` Radu Grigore
2005-02-16 4:42 ` skaller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050216022809.GA19827@localhost \
--to=ecc@cmu.edu \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).