李宗霖 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