* About LTO
@ 2018-07-18 12:01 李宗霖
2018-07-18 15:23 ` U.Mutlu
0 siblings, 1 reply; 2+ messages in thread
From: 李宗霖 @ 2018-07-18 12:01 UTC (permalink / raw)
To: gcc-help
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?
Thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: About LTO
2018-07-18 12:01 About LTO 李宗霖
@ 2018-07-18 15:23 ` U.Mutlu
0 siblings, 0 replies; 2+ messages in thread
From: U.Mutlu @ 2018-07-18 15:23 UTC (permalink / raw)
To: 李宗霖, gcc-help
李宗霖 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-18 12:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-18 12:01 About LTO 李宗霖
2018-07-18 15:23 ` U.Mutlu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).