[fpc-devel] Blackfin support

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Jul 15 22:37:21 CEST 2010


Sergei Gorelkin schrieb:

>> 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.

That's okay, in detail when the uniquely cased names have to be stored.

> Besides, shortstring copies 
> are pretty cheap, compared to AnsiStrings.

I'm not sure about possible string operations, that force implicit 
conversion between Ansi and ShortString. I observed such performance 
hogs in Delphi and other languages, no experience with FPC and the 
concrete compiler code.

DoDi




More information about the fpc-devel mailing list