|
From: | Hans Aberg |
Subject: | Re: Bison and embedded systems |
Date: | Tue, 26 Apr 2005 11:44:44 +0200 |
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) 0that _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
[Prev in Thread] | Current Thread | [Next in Thread] |