Re: A lint classic
From: CodeSprite (debate_at_codesprite.com)
Date: 06/08/04
- Next message: Everett M. Greene: "Re: Agilent now dumping its U.S. employees -- I'm going to boycott them"
- Previous message: Markus Zingg: "CompactFlash endurance check"
- In reply to: Ulf Samuelsson: "Re: A lint classic"
- Next in thread: Ulf Samuelsson: "Re: A lint classic"
- Reply: Ulf Samuelsson: "Re: A lint classic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 08 Jun 2004 16:19:03 GMT
"Ulf Samuelsson" <ulf@atmel.nospam.com> wrote in
news:UFmvc.1176$9n5.828@amstwist00:
> If you declare the "var" as volatile, then you cannot read "var" more
> than once.
Hmmm... this is the opposite to the definition of volatile as I
understand it; marking a variable as 'volatile' should inform the
compiler that it must make no assumptions about the contents of the
variable since it may have changed since it was last read.
The variable will therefore be read every time it is used rather than
being assumed to be equal to a copy held in a register or on the stack.
Peter.
- Next message: Everett M. Greene: "Re: Agilent now dumping its U.S. employees -- I'm going to boycott them"
- Previous message: Markus Zingg: "CompactFlash endurance check"
- In reply to: Ulf Samuelsson: "Re: A lint classic"
- Next in thread: Ulf Samuelsson: "Re: A lint classic"
- Reply: Ulf Samuelsson: "Re: A lint classic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|