On Wed, 4 Oct 2006, Jinesh K J wrote:
operation is performed. When you write a = b; read operation is required on 'b', and a write on 'a'. But when you say a; // no operation is specified here or ; // an empty statement neither read nor a write is asked to perform by us. The compiler will
I'm not too sure about this; when you say a; it's actually an expression that has the value a . The fact that you don't use that value means that the compiler will probably optimize away the statement entirely, if optimization is enabled. But this is not the same case as taking the address of something in which no read is attempted at all.
But now we're getting far from kernel territory and into C and compiler details.
/Ricard -- Ricard Wolf Wanderlöf ricardw(at)axis.com Axis Communications AB, Lund, Sweden www.axis.com Phone +46 46 272 2016 Fax +46 46 13 61 30