News for hackers. Stuff that matters.
Re:C++ on Embedded Systems by brandmeyer on Monday February 20, 2017 @09:05PM (#13692646)
Add -Wdouble-promotion to the list. For microcontrollers which implement float in hardware and double in software, it can be a lifesaver.
Re:C++ on Embedded Systems by revelation on Tuesday February 21, 2017 @05:01AM (#13694531)
That's a great hint, I was almost at the point of writing a short script that checks the binary output for any soft FP operations.
Re:C++ on Embedded Systems by fest on Tuesday February 21, 2017 @07:44AM (#13695037)
Yes, that's a very good idea, especially if code uses lot of floating point operations.