optimization causes CLULoad package to fail

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

optimization causes CLULoad package to fail

Felix R
Hi,

i just found out that optimization removes the counter in the idle thread. This counter is used for COU load measurments with the included Package. This was it allwas shows 99% load.

How can i tell the Compiler not to optimize the idle loop? Is there some kind of pragma for this?
Reply | Threaded
Open this post in threaded view
|

Re: optimization causes CLULoad package to fail

Felix R
it is very simple in this case:
add volatile to the loop counter.