[fpc-pascal] inlining functions

Jonas Maebe jonas at freepascal.org
Sat Jan 12 12:52:44 CET 2019

On 12/01/19 12:47, denisgolovan wrote:
> 07.01.2019, 00:45, "Jonas Maebe" <jonas at freepascal.org>:
>> Not besides breaking your dependency cycles.
> Sorry, but for necro-posting, but shouldn't WPO is supposed to help to inline functions as well?

Not at this time (unless you use the LLVM backend). 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.


More information about the fpc-pascal mailing list