hi all,
i was tested the lto before, but after a while, i disabled it because the
debugging support is bad. static inline is better way to optimize for speed
and still stay debuggable.
second way is to use llvm which has lto with correct support, but for that
we must deal with correct weak pragmas in libopencm3. current state is non-
portable and is broking standard (but works with arm-none-eabi-gcc which has
implementation exception).
for final builds, the lto is good option to slightly reduce code size.
regards,
frantisek burian
ps. written from mobile phone.
---------- Původní zpráva ----------
Od: Tymm Twillman
Datum: 26. 7. 2014 v 06:49:37
Předmět: Re: [libopencm3-devel] LPC11xx library source
Wow, thank you for that. Somehow never had come across the -ftlo flag… from
a quick test it seems quite impressive :) On Jul 25, 2014, at 9:32 PM, Paul
Fertser wrote: > Hi, > > Thank you, Tymm. > > A vaguely related note below.
> > On Fri, Jul 25, 2014 at 12:16:23PM -0700, Tymm Twillman wrote: >>
Development style is such that tiny functions that should require >> only a
few instructions are done as static inline > > I've recently tried using LTO
and so far I'm quite pleased with the > results, the code size reduction is
very noticeable and it looks like > with LTO one can get away without static
inline. > > This is not to imply that you're doing something wrong (quite to
the > contrary) but to encourage list members to try enabling LTO one day. >
> Happy hacking! > -- > Be free, use free (http://www.gnu.org/philosophy/
free-sw.html) software! > mailto:[email protected] -----------------------
------------------------------------------------------- Want fast and easy
access to all the code in your enterprise? Index and search up to 200,000
lines of code with a free copy of Black Duck Code Sight - the same software
that powers the world's largest code search on Ohloh, the Black Duck Open
Hub! Try it now. http://p.sf.net/sfu/bds ___________________________________
____________ libopencm3-devel mailing list libopencm3-devel@lists.
sourceforge.net https://lists.sourceforge.net/lists/listinfo/libopencm3-
devel
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
libopencm3-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel