public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] optimization causes CLULoad package to fail
@ 2013-07-25  8:32 Felix R
  2013-07-26  7:21 ` [ECOS] " Felix R
  0 siblings, 1 reply; 2+ messages in thread
From: Felix R @ 2013-07-25  8:32 UTC (permalink / raw)
  To: ecos-discuss

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?



--
View this message in context: http://sourceware-org.1504.n7.nabble.com/optimization-causes-CLULoad-package-to-fail-tp239397.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ECOS] Re: optimization causes CLULoad package to fail
  2013-07-25  8:32 [ECOS] optimization causes CLULoad package to fail Felix R
@ 2013-07-26  7:21 ` Felix R
  0 siblings, 0 replies; 2+ messages in thread
From: Felix R @ 2013-07-26  7:21 UTC (permalink / raw)
  To: ecos-discuss

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



--
View this message in context: http://sourceware-org.1504.n7.nabble.com/optimization-causes-CLULoad-package-to-fail-tp239397p239501.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-26  7:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-25  8:32 [ECOS] optimization causes CLULoad package to fail Felix R
2013-07-26  7:21 ` [ECOS] " Felix R

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).