Search the Community
Showing results for tags 'optimization'.
-
Here's a very interesting presentation about how modern compiler optimization may lead to unexpected results. This goes way beyond the failure of naive delay loops. http://www.eng.utah.edu/~cs5785/slides-f10/Dangerous+Optimizations.pdf If you ever relied on buffer indices wrapping around (integer overflow), this is a must read. There are many other scenarios discussed. For example I'm pretty sure I fell for this trap myself: volatile int buffer_ready; char buffer[BUF_SIZE]; void buffer_init() { for (size_t i = 0; i < BUF_SIZE; i++) buffer[i] = 0; buffer_ready = 1; } It probabl
-
Tiva/Stellaris programs were compiled with optimization -Os in Energia E0012. (Optimize for size). In Energia E0013 optimization is turned off for Tiva/Stellaris and CC3200. (-O0) How do I turn optimization back on in Energia E0013? I have been working on a Arduino/Energia library which has a timing critical interrupt handler. Of course there is the #pragma route to controlling optimization. But is there a way in the IDE, or in preferences.txt, is #pragma the preferred method. On a somewhat related note, are there any release notes for the new version (which might cove
- 11 replies
-
- energia
- optimization
-
(and 3 more)
Tagged with: