[En-Nut-Discussion] Re: Problems with TCP reception

Vesa Jääskeläinen chaac at nic.fi
Fri Apr 15 17:13:42 CEST 2005


Eduardo Serantes wrote:
> I have read (no idea where), that global variables
> should be declared as "volatile" to avoid the optimizer to re-use them. Any
> notice about it?

Global variables are NEVER reused, if they are "reused" it is a bug.

Volatile only tells to compiler that except that variable might be 
changed elsewhere without code generator seeing it, so compiler avoids 
optimizing accesses to this variable.

Thanks,
Vesa Jääskeläinen



More information about the En-Nut-Discussion mailing list