Hi All.
Based upon the code into the post, I've driven a test case:
three platforms and Delphi 5, Delphi XE, Lazarus 1.0.12 (FPC 2.6.2)
For a comparison purpose, the main specific code has been written in a
classical way, using implicit string and the optimized code uses the
function result as
On Tuesday 29/10/2013 at 19:51, John Lee wrote:
Did you try any other fpc compiler optimisation settings?
No, -O2 is the only compiler optimisation I enabled.
Regards,
Graeme
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://
Am 30.10.2013 12:59, schrieb John Lee:
jonas wrote
'
It may indeed be possible to handle this in the compiler.
> What about llvm - (coming soon to fpc apparently) - would that fix it?
Not in the least. "soon" is also a gross overstatement.
'
What's the size/difficulty of compiler spotting this?
jonas wrote
'
It may indeed be possible to handle this in the compiler.
> What about llvm - (coming soon to fpc apparently) - would that fix it?
Not in the least. "soon" is also a gross overstatement.
'
What's the size/difficulty of compiler spotting this? Suppose it needs to
be able to 'look ahe
On 29/10/13 18:17, John Lee wrote:
On 29 October 2013 13:22, Graeme Geldenhuys wrote:
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/
>
Did you try any other fpc compiler optimisation settings? No expert, but
looks like it isn't too difficult for compiler to spot this.
What about llvm - (coming soon to fpc apparently) - would that fix it?
John
On 29 October 2013 13:22, Graeme Geldenhuys wrote:
> Hi,
>
> This is a very impres