NorthGuy
Well-Known Member
That's why I said fixed point.
Something with my eyes. I would swear I saw "floating".
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
That's why I said fixed point.
It's not "Off Topic"... the thread is about optimization.... I believe the comments so far are relevant..Ian used to be strict about off-topic.. what happened ?
If he's anything like me... I always have the resource usage manager in view..
Please forgive the interruption. May I ask which IDE you're using, and, if MPLAB, where the resource usage manager is, please?
TIA. Cheerful regards, Mike
Anyway.. has anybody even tested how much larger your code gets when optimizing for speed. Or how much faster your code gets when optimizing for speed. I have, the difference between size/speed is usually irrelevant, and the selection between optimization levels is more psychological than practical (when compiling for the "final product", debugging is different case).
-O3 tries to optimize code very heavily for performance. It includes all of the optimizations -O2 includes, plus some more.
-Os, on the other hand, instructs GCC to "optimize for size." It enables all -O2 optimizations which do not increase the size of the executable, and then it also toggles some optimization flags to further reduce executable size.