High level priority and low priority

xiaoxiao2021-03-06  45

Start talking about the high priority and low priority, we look like the following code: INT i = 10; then how is the layout in the memory? Assume that memory is low ---> high growth in the low priority hardware inside, the memory layout as follows: 0,000,101,000,000,000 00000000 00000000 high priority in the memory: 00000000 00000000 0,000,000,000,001,010 This is what we often hear of high priority, low priority. So what winter winter we need? Look at the following: #include main () {int a = 10; Short B; Memcpy (& B, & A, 2); Printf ("% d / n", b);} If you output the result For: 10, congratulations, your memory storage is the low priority, if the result is: 0? Congratulations, your memory storage is high priority. BTW: Always high in the processor. in conclusion:

Maybe a winding, that is, the lowest address stores high bit bytes, called high-level priority, lowest address storage low byte, becoming low priority

转载请注明原文地址:https://www.9cbs.com/read-52103.html

New Post(0)