LTO or not LTO that is the question

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

LTO or not LTO that is the question

Postby Tabulous » Thu Dec 08, 2016 2:43 pm

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: 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

Postby Giovanni » Thu Dec 08, 2016 3:15 pm

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: 509
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 17 times

Re: LTO or not LTO that is the question

Postby Tabulous » Thu Dec 08, 2016 3:25 pm

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: 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

Postby Giovanni » Thu Dec 08, 2016 3:46 pm

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

Giovanni


Return to “ChibiStudio”

Who is online

Users browsing this forum: No registered users and 8 guests