>> And unless you use its contents in >> an ISR or asm you don't need volatile either. > > So, if I read this right I do not have to make the variable > volatile and can still use it in an ISR (and all the other > c files).
No, if you want to use the pointer in both an ISR and your main loop you have to use volatile. But if you use it only in the main loop you can leave volatile out. Volatile means that the compiler should make no assumptions about the data staying at the same value, because it can change at any moment. An ISR can do that or a piece of asm or real hardware. > Anyway, dank je wel ! > > roelof Graag gedaan, Maarten ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
