Hi, probably(but I'll be sure in next days) one possible solution is:
#define YYINITDEPTH 100
#define YYMAXDEPTH 0
#define YYSTACK_ALLOC(size) 0
in the code generated:
# ifndef YYSTACK_RELOCATE
goto yyexhaustedlab;
# else
As a compiler and firmware writer, I think this is a very interesting issue.
First, take into account to use the bison macro YYMALLOC and YYFREE (see
bison output c file).
Then I can suggest to use a tiny and efficient memory manager like this one:
http://eli.thegreenplace.net/2008/10/17/memmgr
Le 17 juil. 2012 à 10:00, Claudio Eterno a écrit :
> Hi folks,
> I'm writing here due to some configuration problems on bison.
> My question: I would like to use bison for an embedded application (based
> on a uC with only 16kb of ram a 256 kb of flash). Due to the limited
> resources reasons and