Re: Embedded software interview question collection



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?


--
Michael N. Moran (h) 770 516 7918
5009 Old Field Ct. (c) 678 521 5460
Kennesaw, GA, USA 30144 http://mnmoran.org

"So often times it happens, that we live our lives in chains
and we never even know we have the key."
The Eagles, "Already Gone"

The Beatles were wrong: 1 & 1 & 1 is 1

.



Relevant Pages

  • Re: Embedded software interview question collection
    ... Now when the cache is off then the two different commands work the same but with the cache on a non-volatile write goes to cache but a volatile write bypasses the cache altogether, only when you move to a different cache line is it written into memory. ... that we live our lives in chains ...
    (comp.arch.embedded)
  • Re: Embedded software interview question collection
    ... 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 ... a seperate block of memory so there will be no memory corruption. ...
    (comp.arch.embedded)
  • Re: Embedded software interview question collection
    ... 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 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. ... and this could be catagorized as DMA. ...
    (comp.arch.embedded)
  • Re: Embedded software interview question collection
    ... 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 ... a seperate block of memory so there will be no memory corruption. ... indicate a non-cache access, and thus "volatile" avoids the cache. ...
    (comp.arch.embedded)
  • Re: Embedded software interview question collection
    ... and st which is what the compiler produces for volatile ... registers then the cache comes into play and you dont see the change in the ...
    (comp.arch.embedded)