Quantcast
Channel: Atomically overwrite a pointer - Stack Overflow
Browsing all 5 articles
Browse latest View live

Answer by Lundin for Atomically overwrite a pointer

Since we are talking about C, most of the posted answers are nonsense. It doesn't matter how large a pointer type is and that MPC430 is a 16 bit MCU just like the 16 bit address bus. Thinking that this...

View Article



Answer by kfx for Atomically overwrite a pointer

TelosB uses msp430 Series 1 MCU, on which all pointers are 16-bit variables. (There are other series of msp430 where this fails to hold.) Normally, access to 16-bit variables on msp430 is atomic....

View Article

Answer by jwdonahue for Atomically overwrite a pointer

The RAM for this chip is embedded on the chip. The compiler agrees with the processor on pointer size, I think you should be ok.There's no cache, so you wouldn't even have to worry about fences for...

View Article

Answer by CL. for Atomically overwrite a pointer

On the MSP430 architecture (and with any of the C compilers you could be using), pointer reads/writes indeed are atomic. Therefore, there is no specific std::atomic (or equivalent) support code for...

View Article

Atomically overwrite a pointer

I have found similar questions to the one I have (i.e. Is changing a pointer considered an atomic action in C?), but I have not been able find anything that gives me a definitive yes/no answer when it...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images