>
> Address=&MemoryBlock;
> (*Address)=0xAA;
>       if ( (*Address) != 0xAA )
>       { /* We never get here because the (*Address) location is not re-read  
> */ }
>
> I can declare the MemoryBlock variable as volatile [I have done], but  
> that
> doesn't mean that the compiler knows that (*Address) is also implicitly
> volatile in this situation.

Would declaring Address like

volatile char *Address;

help? This should declare Address as a pointer to something volatile ...
How did you declare Address/MemoryBlock?!?

Best of luck,
Raphael

------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to