The Best and Worst GCC Compiler Flags For Embedded (blog article)

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just came across this article and found it very useful.

 

https://interrupt.memfault.com/b...

 

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).

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It concentrates on  GNU ARM Embedded - so details may not (all)  be directly relevant here ... ?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Tue. Sep 29, 2020 - 07:12 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:
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.