From: John Dallaway <john@dallaway.org.uk>
To: "Heidet, Christophe" <Christophe.Heidet@Gunnebo.com>,
ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Re: idle_thread_loops with arm-eabi-gcc
Date: Wed, 26 Aug 2009 07:02:00 -0000 [thread overview]
Message-ID: <4A94DDF4.4040808@dallaway.org.uk> (raw)
In-Reply-To: <20090813122913.GM13341@lunn.ch>
Hi Christophe
Andrew Lunn wrote:
> On Wed, Aug 12, 2009 at 09:08:54AM +0200, Heidet, Christophe wrote:
>> Hello,
>>
>> I have a strange problem with arm-eabi-gcc.
>> I use the version from ecos website : arm-eabi-gcc V4.3.2
>> If I build with the -O2 optimization flag, I can't use the cpuload
>> package, because the "idle_thread_loops" never increase ...
>> If I decrease the optimization (to -O0) I have no problem and the
>> cpuload works very well.
>>
>> Does anybody have a solution ? instead of decrease the optimization ...
>
> Try making idle_thread_loops volatile. That might stop the compiler
> from optimizing out the increment.
Did Andrew's suggestion resolve this problem?
John Dallaway
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
prev parent reply other threads:[~2009-08-26 7:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-12 7:09 [ECOS] " Heidet, Christophe
2009-08-13 12:29 ` Andrew Lunn
2009-08-14 11:06 ` [ECOS] Design of raw ethernet stack Jim Bradleigh
2009-08-26 7:02 ` John Dallaway [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A94DDF4.4040808@dallaway.org.uk \
--to=john@dallaway.org.uk \
--cc=Christophe.Heidet@Gunnebo.com \
--cc=ecos-discuss@ecos.sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).