C ???????????岻??μ??μ?????
?????wta670 ???????[ 2016/11/4 11:39:13 ] ???????????? ???? ????
??????????????????mips???????x86?????????????????β???x86????????????????????????п??????????????????????????????????????????????λ????б????????????????????????????????????ε?C??????????????????£??????????????λ??У??????????????????λ?????????????????д?????????????
?????????mips???????????????????????x86???????????????????????????????????????????????????????????????δ???????????δ???????????????????????????????????ó??????????????????????????????????κθ?????????????ó?????????????????????????????????????????????????x86???????????16λ??????mips??????????32λ???????16λ?????x86???μ???????????????????ú????????????????????????????????C?????????????????£?
??????????????????????
//crc.c
//????????а???crc.h?????????
unsigned int get_crc(void??
{
return 0x12345678;
}
//crc.h
unsigned short get_crc(void);
//main.c
#include <stdio.h>
#include "crc.h"
int main(int argc?? char *argv[])
{
unsigned int crc = get_crc();
printf("crc:%x
"?? crc);
return 0;
}
???????????: gcc -Wall -o test main.c crc.c //?e??-Wall????????
??????x86???????:5678
????????????mips????powerpc???±??????????δ????????????????????mips?????????12345678????powerpc?????????12345678
?????????????????????????????get_crc?????????????????壨????????μ??μ???????????????????????????????????????????????
??????????д????????????????????????????????????????????Linux???£??????????cscope+ctags+vim??д????????????????????????????????????崦????????????????????????????????????????????????????岻??μ????Ρ?
???????????????????????????????????????????????????????????????????δ????????????????????????????????
??????????????????????????????????????????????????ν??“????????????”??
???????????????????????????????????δ????????????gcc?汾?????????????????????????????????Щ?????????????????????е???????powerpc????gcc?汾??3.3.x??mips????gcc?汾??4.3.x????x86???????????汾?????????????4.1.x(centos)??4??6.x(ubuntu)????????mips????powerpc???????????12345678??x86??????5678??mips??powerpc???????x86??С?????????????ж????????????????????????汾????????С????????????????????????????????
??????????????????????????????????????????????????gcc?汾???????????μ????????????С????????????????????????????????????
??????????????????????????ε?????????С???????????????????????????????????????????????????????????????????????????????У???????????????????????????????????????С???????????????????μ??????????????????????????????C??????8.5??????????
????????????????????????????£???????????????????ú???????????????????????????????????
????4??18???????????mips????x86??gcc?汾?????????п???????????????????gcc?汾???в????????mips??????????12345678?????????????????????????????俴??mips????????°ɡ?
??????
???·???
??????????????????
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