[fpc-pascal] Efficient String concatenation
    Graeme Geldenhuys 
    graeme at geldenhuys.co.uk
       
    Tue Oct 29 14:22:41 CET 2013
    
    
  
Hi,
This is a very impressive little blog about efficient string 
concatenation in Delphi. But it also applies to Free Pascal.
     
http://www.delphitools.info/2013/10/28/efficient-string-concatenation-in-delphi/
I created two versions of the small test project and compiled it with 
FPC as follows.
  $ fpc -O2 -al stringtest.pas
  $ fpc -O2 -al stringtest2.pas
Then compared the two *.s assembler files. As the blog mentions, the 
"stupid looking" version generates a heck of a lot less ASM code. Umm. 
:)
Regards,
  - Graeme -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131029/d3b96fed/attachment.html>
    
    
More information about the fpc-pascal
mailing list