This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 12-May-2003, Stephen P. Smith <ischis2@cox.net> wrote:Why would this be better syntax?
Firstly, I would suggest using `*(volatile DWORD *)&p1'
rather than `(volatile DWORD)p1'.
Why is that the case? I thought that the cast would be sufficient.Secondly, if you want to be sure that the value will be assigned to the target variable immediately, you need to declare the target variable as volatile.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |