Can some one explain the benefits ?
The down side is it hinders debuging........ variables with ext .lto_priv cant be veiwed in the debugger window
LTO or not LTO that is the question
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: LTO or not LTO that is the question
Hi,
The plus should be a greater optimization resulting in more speed and/or lower code size.
You should be able to assess the difference easily.
Giovanni
The plus should be a greater optimization resulting in more speed and/or lower code size.
You should be able to assess the difference easily.
Giovanni
Re: LTO or not LTO that is the question
Giovanni wrote:Hi,
The plus should be a greater optimization resulting in more speed and/or lower code size.
You should be able to assess the difference easily.
Giovanni
with lto on some globals cant be added to the variable view when debugging. If you disable lto everything works fine.
So for me lto is a hindrance, just like most optimizations are. First thing i do when starting a new project is set -O0.
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: LTO or not LTO that is the question
It is not useful during development for sure. It is not mandatory anyway, our default settings are for "final" phase.
Giovanni
Giovanni
Who is online
Users browsing this forum: No registered users and 8 guests