At 02:26 -0400 2005/04/26, Alfonso Urdaneta wrote:
Paul Eggert wrote:

If by "dynamic memory" you mean "malloc or alloca", then yes, it's
easy:

#define YYSTACK_ALLOC(size) 0

that _is_ easy. ;]

Strictly speaking, one needs some additional information, fixing the initial parser stack size at a suitable value. I am not sure why alloca isn't usable in embedded systems; perhaps it is not available. And, if the parser stack is fixed, how is overflow handled. And if it is set too a high value, isn't that a poor use of the scarce memory?
--
Hans Aberg



_______________________________________________ Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to