[fpc-pascal] Efficient String concatenation
Sven Barth
pascaldragon at googlemail.com
Wed Oct 30 13:13:35 CET 2013
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? Suppose it needs
> to be able to 'look ahead' by few statements - which I'd thought it
> does already to some extent.
It's not about parsing. The code will be parsed the same nevertheless.
It would be a optimization on the resulting node tree however after the
function was parsed and before the code is generated.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131030/e98cdcd5/attachment.html>
More information about the fpc-pascal
mailing list