[Rd] Patch: context stack size in gram.y
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed May 31 15:26:26 CEST 2006
On Wed, 31 May 2006, Thomas Dreibholz wrote:
> Attached to this mail, you find a patch for gram.y setting a #define
> CONTEXT_STACK_SIZE for the context stack size and replacing the following
> constants 50 and 49 by CONTEXT_STACK_SIZE and CONTEXT_STACK_SIZE-1. The new
> #define makes setting the stack size much more easy; I also have increased it
> to 500, because 50 is too small (we use R to iterate through sets of
> simulation parameters, which requires a context stack size of around 100).
I think you will have to explain in detail why you need this, when for a
decade R users have not reported a need for it. It is not related to
iteration in R, rather to the depth of recursion needed to parse R code.
> I have also discovered that yacc is only invoked when R is configured with
> "--enable-maintainer-mode", i.e. the redundant output file gram.c is part of
> the source distribution. Would is not be better to always generate gram.c
> from gram.y instead of providing gram.y and gram.c?
We do not require end users to have yacc, and Windows users definitely do
not have it. Nor do those of lots of other platforms, e.g. Solaris.
Please read the R-admin manual to discover the requirements (it is always
a good idea to read the manual before posting).
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-devel