bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suggestion: Option to use "malloc" instead of stack for parser data-stru


From: Bjorn Remseth
Subject: Suggestion: Option to use "malloc" instead of stack for parser data-structures.
Date: Mon, 20 Nov 2000 14:38:01 +0100

Version of Bison:  bison-1.28.

Rationale:  o Grammar producing  6 MB  'yysva' vector wouldn't run
              due to  limitation in stacksize.

Fix:        o  Extend bison.simple to respond to an option 
               YYSTACK_USE_MALLOC that uses malloc/realloc to allocate
               storage for the parser's data structures, not stackspace.

Status:     o  Not thouroughly tested, in particular not the 
               case where (yystacksize > YYMAXDEPTH), but it works
               for me, and it seemed like a general fix, so I'm 
               submitting it. diff and modified bison.simple are
               included.

                                                        (Rmz)


-- 
Bjørn Remseth                             Mail:  address@hidden
Systems Engineer                          Web:   http://www.fast.no/
Fast Search & Transfer ASA                Phone: +47 23 23 84 00
P.O. Box 1677 Vika                        Fax:   +47 23 23 84 01
NO-0120 Oslo, NORWAY                      Mob:   +47 91 34 13 32


Attachment: bison.simple.diff
Description: Text document

Attachment: bison.simple
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]