Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: Compiler Optimization

$
0
0

You'll need to make both the index and each array volatile.  This is pretty much a textbook case for when you would need to use volatile.  The arrays must be volatile because func2 could modify them at any moment.

You can read DataAccess_G into a temp variable in func2 as long as no other interrupt could change it.


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>