[fpc-pascal] inlining functions

Sven Barth pascaldragon at googlemail.com
Sat Jan 12 14:02:31 CET 2019

Am Sa., 12. Jan. 2019, 13:05 hat denisgolovan <denisgolovan at yandex.ru>

> > However, what you actually can do, is manually recompile all units of
> your program
> > multiple times. While this won't help with inline functions called
> > before they are parsed in those same units, it will allow inlining of
> > function bodies in other units that were not available during the first
> > compilation due to dependency cycles.
> Eh.
> It does not look too practical, right?
> Unless there is some magical receipt for that :)

With WPO you need to compile at least twice as well as the first pass only
collects information and acts on it in the second pass.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190112/ab783fe8/attachment.html>

More information about the fpc-pascal mailing list