Subj : Re: Memory visibility and the C compiler... ( a bit long ) To : comp.programming.threads From : Joseph Seigh Date : Fri Jan 14 2005 07:54 pm On Thu, 13 Jan 2005 18:47:49 +0100, Alexander Terekhov wrote: > > SenderX wrote: > [...] >> > Reordering across "critical instructions" (inline asm >> > and/or external asm functions) is still possible (and is in fact >> > desirable as long as it doesn't break anything). >> >> Are you talking about how the C compiler can reorder calls to external >> assembled functions? > > Yes. For example, an external assembled function with the effect of > > int f(...) { > return 42; > } > > can be reordered in all the ways you can imagine. Oder? It can be reordered all the ways the compiler can imagine and the compiler cannot imagine very much about external routines. > -- Joe Seigh .