Re: flex code memory usage

=?ISO-8859-1?Q?Stefan_Fr=FChwirth?= <stefan.fruehwirth@gmx.at>
4 Feb 2004 21:47:52 -0500

          From comp.compilers

Related articles
flex code memory usage stefan.fruehwirth@gmx.at (=?ISO-8859-1?Q?Stefan_Fr=FChwirth?=) (2004-02-01)
Re: flex code memory usage stefan.fruehwirth@gmx.at (=?ISO-8859-1?Q?Stefan_Fr=FChwirth?=) (2004-02-04)
Re: flex code memory usage ChrisIsbell_nospaam@voila.fr (Chris Isbell) (2004-02-04)
Re: flex code memory usage ChrisIsbell@voila.fr (Chris Isbell) (2004-02-08)
| List of all articles for this month |
From: =?ISO-8859-1?Q?Stefan_Fr=FChwirth?= <stefan.fruehwirth@gmx.at>
Newsgroups: comp.compilers
Date: 4 Feb 2004 21:47:52 -0500
Organization: Compilers Central
References: 04-02-029
Keywords: lex, comment
Posted-Date: 04 Feb 2004 21:47:52 EST

RERA wrote:


> Using flex for a embedded system :O. I don't think it's a better idea. Is
> your embedded product that complex? What does your chip support ?


It's a IP2022 from Ubicom
(http://www.ubicom.com/products/ip2000/ip2000.html). And maybe it's
not correct to call it a embedded system...


> Hand written lexer/parser will be a better idea.


Maybe, but are there any solutions that are less complex than flex?
Some form of lexer generator, but not that complex. Maybe you know
something like this.


> If you do not clear memory will the product be fool proof? Will there be
> side effects?


I maybe shouldn't do this task, it may be a little bit too complicated
for me, but I think, when a call of yylex is finished, the heap used
by it is not freed. That's my problem, but maybe I've seen something
wrong...


thanks, steve
[You might take a look at re2c, recently mentioned here. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.