[fpc-devel] Blackfin support

Sergei Gorelkin sergei_gorelkin at mail.ru
Thu Jul 15 17:56:34 CEST 2010


Hans-Peter Diettrich wrote:
> 
> Not necessarily. When all currently used files reside in memory, every 
> (recorded) token can contain an pointer (or offset) into the file 
> buffer. This may reduce the number of required string copies (not yet 
> fully researched).
> 
You normally shouldn't ever need to process every token this way.
Language keywords are encoded with enumeration type. Everything else is put into hashtable, so you 
typically need only as much string copies as there are distinct identifiers in the file. Besides, 
shortstring copies are pretty cheap, compared to AnsiStrings.

Regards,
Sergei



More information about the fpc-devel mailing list