About LTO

U.Mutlu um@mutluit.com
Wed Jul 18 15:23:00 GMT 2018


李宗霖 wrote on 07/18/2018 12:50 PM:
> Hello,
>
> I'm learning LTO and have some questions.
> I found the lto/lto.c from gccint.info and add fprintf(...) to output some
> message on the terminal, but it shows nothing.
> I'not sure whether this is the one that used to optimize code when adding
> "-flto" in the command.
>
> Can you give some advice about how the files doing optimize?

Here's an article entitled "How GCC LTO Works", with an example for malloc:
https://eklitzke.org/how-gcc-lto-works





More information about the Gcc-help mailing list