Re: lex/flex and source correspondence

Gene <gene.ressler@gmail.com>
Thu, 08 Nov 2007 03:43:25 -0000

          From comp.compilers

Related articles
lex/flex and source correspondence parthaspanda22@gmail.com (2007-11-06)
Re: lex/flex and source correspondence gene.ressler@gmail.com (Gene) (2007-11-08)
Re: lex/flex and source correspondence dickey@saltmine.radix.net (Thomas Dickey) (2007-11-29)
| List of all articles for this month |

From: Gene <gene.ressler@gmail.com>
Newsgroups: comp.compilers
Date: Thu, 08 Nov 2007 03:43:25 -0000
Organization: Compilers Central
References: 07-11-023
Keywords: lex, performance
Posted-Date: 07 Nov 2007 23:12:06 EST

On Nov 6, 8:54 am, parthaspand...@gmail.com wrote:
> A flex generated scanner could decide to store the entire input file
> in memory. That way, a single buffer can be used in several places in
> the tool chain that uses a scanner. ...


> [This is a very old idea. Turbo Pascal buffered full source files in
> RAM in the 1980s. -John]


The C preprocessor of gcc also buffers entire files, or at least did
in the version I studied some years ago. It used a hand-coded
scanner, however, not lex/flex.



Post a followup to this message

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