Bison and embedded systems

2005-04-25 Thread Julian Gryffin
Hi,


I need some help with Bison on embedded Systems. I have a ROM with only few
memory. Bison is using dynamic memory in the C-file it built. Is there a
possibility to prevent it using dynamic memory?


Greetings,
Julian


P.S: Sorry for my bad English ;)

-- 
+++ Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl


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


Re: Bison and embedded systems

2005-04-25 Thread Hans Aberg
At 11:29 +0200 2005/04/25, Julian Gryffin wrote:
I need some help with Bison on embedded Systems. I have a ROM with only few
memory. Bison is using dynamic memory in the C-file it built. Is there a
possibility to prevent it using dynamic memory?
My guess is that you do not use Bison on the embedded system, but 
merely want use the parser it generates. Then later versions of Bison 
are such that it should be easy to write ones own skeleton file. It 
can thus be designed to only use static memory, if you so would like. 
It should not be difficult to write such a skeleton file. I cc Paul 
Eggert, who wrote the dynamic memory feature; perhaps he can help.
--
  Hans Aberg

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


Re: Bison and embedded systems

2005-04-25 Thread Paul Eggert
At 11:29 +0200 2005/04/25, Julian Gryffin wrote:
>Bison is using dynamic memory in the C-file it built. Is there a
>possibility to prevent it using dynamic memory?

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

#define YYSTACK_ALLOC(size) 0


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


Re: Bison and embedded systems

2005-04-25 Thread Alfonso Urdaneta
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.  ;]
--
alfonso e. urdaneta
www.red82.com - are you ready ?
___
Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison