Just came across this article and found it very useful.
In fact, the whole blog seems very useful and I shall be dipping in further. Seems it's been referenced a couple of time in other threads (yes, I did search).
It concentrates on GNU ARM Embedded - so details may not (all) be directly relevant here ... ?
Indeed, but this outsider glanced through the list and -flto is a bad one. I recall many threads here in AVRland that have lto in them.
You can put lipstick on a pig, but it is still a pig.
I've never met a pig I didn't like, as long as you have some salt and pepper.
© 2022 Microchip Technology Inc.