William "Chops" Westfield wrote: >> Atomicity is a completely seperate issue as far as the compiler is >> concerned > > Do any C compilers include support for "atomicity" ? GCC doesn't, > nor Intel's C compiler for x86, but it's something that might be more > likely to show up in a microcontroller-oriented compiler. Not sure what you mean, but depending on what the processor and/or the operating system supports, GCC, VC++ and Intel all support atomic operations (e.g. on x86 for up to 32bit variables and on x64 processors for up to 64bit variables). If needed with embedded assembly... But C is not a multi-threaded language, so to speak, as the existence of several threads is not part of the C language definition. So this is always an issue "besides" C; you have to consult operating system and compiler manuals (the section about implementation specifics), not the C manual. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist