|
Define a pointer. The name is xdata;
The type is: unsigned char volatile *
The initial value is: 0
=============================================
I have never seen such an initial value, and the test failed
Among them, volatile means that the compiler does not optimize the value.
=============================================
Note that when the compiler does not optimize, volatile may not work, but when you start optimizing code (when the compiler starts looking for redundant reads), you can prevent major errors.
(From "C++ Programming Ideas Volume One 2nd Edition" P73)
LZ may wish to send out the code that refers to this macro to see |
|