LTO or not LTO that is the question

Discussions and support about ChibiStudio, the free development environment for ARM.
Post Reply
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

LTO or not LTO that is the question

Post by Tabulous »

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
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: LTO or not LTO that is the question

Post by Giovanni »

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
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: LTO or not LTO that is the question

Post by Tabulous »

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.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: LTO or not LTO that is the question

Post by Giovanni »

It is not useful during development for sure. It is not mandatory anyway, our default settings are for "final" phase.

Giovanni
Post Reply