[fpc-pascal] Inline methods

Sven Barth pascaldragon at googlemail.com
Wed May 18 14:15:24 CEST 2016


Am 18.05.2016 13:29 schrieb "Jonas Maebe" <jonas.maebe at elis.ugent.be>:
>
>
> LacaK wrote on Wed, 18 May 2016:
>
>> Any other ideas, what leads compiler to not inline ?
>
>
> If you compile with -vd, the compiler will tell you in most cases why
it's not inlining. Additionally, it's possible that it's not possible to
inline generic routines in regular routines, because IIRC the code for
specialisations is generated after the code for all regular routines has
been generated (and hence it's probably never available yet while
generating code for regular routines, unless perhaps if the specialisation
is defined in another unit).

Yes, that might indeed be the most probable cause. That's something that I
still need to fix in trunk, cause I really want inlining to work with
generic functions (with generic records and classes it should work if the
specialization was done in the interface section of another unit).

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160518/f71e868f/attachment.html>


More information about the fpc-pascal mailing list