???????????????C/C++????????
???????????? ???????[ 2012/10/16 13:20:59 ] ????????
??????5????ü????????
????????????????????????????register????????????????????????????????????????У????????????У??????????????????????????????????????????????????????????????
??????6????????????????????
???????????????????????????????????????????????????????????????????????????????CPU????????????????? ?????????????????????????д??????????????????????
x=x+1;
??????′???????????????????????????????????
????move A??x;??x?????????????????A
????add A??1;?????A??1
????store x;????????x
?????????????????????????????????£?
????incr x;x??1
????????????????????????????????????е????????????????????
??????7????????????ò???
???????????????????????????????Ч????????????????????ò??????????????????????????????????????????????????????????黯???????????????á?
??????8??Switch????и???????????????case????
????switch???????????????????????????????if-else-if???????????????????б?????????????????????????????????С?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????仰??????????????????????λ?????????????????
??????9???????switch????????switch???
??????switch????е?case???????????????????????????????????switch????????switch?????????????case ?????????switch????У??????????switch??????????????????????case???????????switch????С????磬????????????????????????????????case??????
pMsg=ReceiveMessage();
switch (pMsg->type)
{
case FREQUENT_MSG1:
handleFrequentMsg();
break;
case FREQUENT_MSG2:
handleFrequentMsg2();
break;
......
case FREQUENT_MSGn:
handleFrequentMsgn();
break;
default: //????????????????????????????
switch (pMsg->type)
{
case INFREQUENT_MSG1:
handleInfrequentMsg1();
break;
case INFREQUENT_MSG2:
handleInfrequentMsg2();
break;
......
case INFREQUENT_MSGm:
handleInfrequentMsgm();
break;
}
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11