Re: Embedded software interview question collection
- From: "Peter" <meltyb@xxxxxxxxxxx>
- Date: Wed, 13 Sep 2006 12:53:51 +0100
"Michael N. Moran" <mike@xxxxxxxxxxx> wrote in message
news:2CRNg.59500$e9.5509@xxxxxxxxxxxxxxxxxxxxxxxxx
Julian Gardner wrote:
Well ive been arguing with a company because they cant get to grips what
volatile really does and because of this the new piece of hardware they
have released witb an embedded processor does not work if the cache is
switched on!!!!
I have tried for 2 years to get them to understand but they still screw
the design up.
I now need to got through all my code and try to move every variable into
a seperate block of memory so there will be no memory corruption.
Off topic, but ... maybe it's because my brain hasn't clicked on yet,
but what has the use of volatile got to do with cache?
volatile on a variable stops a compiler from doing optimisations like
caching. This is useful if there is more than one thread using the variable
because the actual variable and a cached copy would not match.
Peter
.
- Follow-Ups:
- References:
- Embedded software interview question collection
- From: dreamguy007
- Re: Embedded software interview question collection
- From: Yuriy K.
- Re: Embedded software interview question collection
- From: Julian Gardner
- Re: Embedded software interview question collection
- From: Michael N. Moran
- Embedded software interview question collection
- Prev by Date: gif to binary data
- Next by Date: Re: 8 bit microcontroller market
- Previous by thread: Re: Embedded software interview question collection
- Next by thread: Re: Embedded software interview question collection
- Index(es):
Relevant Pages
|