* [ECOS] idle_thread_loops with arm-eabi-gcc
@ 2009-08-12 7:09 Heidet, Christophe
2009-08-13 12:29 ` Andrew Lunn
0 siblings, 1 reply; 4+ messages in thread
From: Heidet, Christophe @ 2009-08-12 7:09 UTC (permalink / raw)
To: ecos-discuss
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 ...
Christophe
--
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] 4+ messages in thread
* Re: [ECOS] idle_thread_loops with arm-eabi-gcc
2009-08-12 7:09 [ECOS] idle_thread_loops with arm-eabi-gcc 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 ` [ECOS] Re: idle_thread_loops with arm-eabi-gcc John Dallaway
0 siblings, 2 replies; 4+ messages in thread
From: Andrew Lunn @ 2009-08-13 12:29 UTC (permalink / raw)
To: Heidet, Christophe; +Cc: ecos-discuss
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.
Andrew
--
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] 4+ messages in thread
* [ECOS] Design of raw ethernet stack..
2009-08-13 12:29 ` Andrew Lunn
@ 2009-08-14 11:06 ` Jim Bradleigh
2009-08-26 7:02 ` [ECOS] Re: idle_thread_loops with arm-eabi-gcc John Dallaway
1 sibling, 0 replies; 4+ messages in thread
From: Jim Bradleigh @ 2009-08-14 11:06 UTC (permalink / raw)
To: ecos-discuss
Hi,
I have the FreeBSD stack in use on port 1, I need to use port's 2 and 3 for my own custom receive/transmit purposes (i.e. raw ethernet Rx/Tx).
Is it best if I take the lwIP and strip this out and add in the functionality I require?
I`m still learning alot about the low-level stuff in eCos but as far as I`m can I see I would need to create a new version of "__NETDEVTAB__" for my custom version of lwIP and alter the drivers to publish the 2nd and 3rd ports.
Is this the best way of accomplishing what i require?
Thanks,
Jim
--
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] 4+ messages in thread
* [ECOS] Re: idle_thread_loops with arm-eabi-gcc
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
1 sibling, 0 replies; 4+ messages in thread
From: John Dallaway @ 2009-08-26 7:02 UTC (permalink / raw)
To: Heidet, Christophe, ecos-discuss
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-26 7:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-12 7:09 [ECOS] idle_thread_loops with arm-eabi-gcc 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 ` [ECOS] Re: idle_thread_loops with arm-eabi-gcc John Dallaway
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).