[fpc-pascal] inlining functions

denisgolovan denisgolovan at yandex.ru
Sat Jan 12 13:05:42 CET 2019



12.01.2019, 14:53, "Jonas Maebe" <jonas at freepascal.org>:
> Not at this time (unless you use the LLVM backend). 

Could you give some hints on how to enable WPO/LTO under LLVM backend?
http://wiki.freepascal.org/LLVM does not seem to mention anything on that.

> 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 :)

-- 
Regards,
Denis Golovan




More information about the fpc-pascal mailing list