我试着有了一个513K的.out文件通过dis2000反汇编出来,反出来之后变成了7632K。用记事本打开发现只有
.sect ".data"
00300000 b2bd .word 0xb2bd
00300001 8f00 .word 0x8f00
00300002 c680 .word 0xc680
00300003 8d40 .word 0x8d40
00300004 02fe .word 0x2fe
00300005 8d00 .word 0x8d00
00300006 02fd .word 0x2fd
00300007 aabd .word 0xaabd
00300008 3b01 .word 0x3b01
00300009 a2bd .word 0xa2bd
0030000a fe24 .word 0xfe24
0030000b 929c .word 0x929c
0030000c 9494 .word 0x9494
0030000d 8d00 .word 0x8d00
0030000e 02ff .word 0x2ff
0030000f 9494 .word 0x9494
00300010 34a9 .word 0x34a9
…………………………………
0033fff6 0071 .word 0x71
0033fff7 8458 .word 0x8458
0033fff8 0000 .word 0
0033fff9 0000 .word 0
0033fffa 0000 .word 0
0033fffb 0000 .word 0
0033fffc 0000 .word 0
0033fffd 0000 .word 0
0033fffe 0000 .word 0
0033ffff 0000 .word 0
看不到.sect ".text" 的汇编指令,更奇怪的就是用CCS4.2打开那个7632K的汇编,提示An out of memory error has occurred “”“Runing eclipse ”section of read me for information on preventing tis kind of error in furture
jianxing ding:
有没有人回复啊,自己帮顶
我试着有了一个513K的.out文件通过dis2000反汇编出来,反出来之后变成了7632K。用记事本打开发现只有
.sect ".data"
00300000 b2bd .word 0xb2bd
00300001 8f00 .word 0x8f00
00300002 c680 .word 0xc680
00300003 8d40 .word 0x8d40
00300004 02fe .word 0x2fe
00300005 8d00 .word 0x8d00
00300006 02fd .word 0x2fd
00300007 aabd .word 0xaabd
00300008 3b01 .word 0x3b01
00300009 a2bd .word 0xa2bd
0030000a fe24 .word 0xfe24
0030000b 929c .word 0x929c
0030000c 9494 .word 0x9494
0030000d 8d00 .word 0x8d00
0030000e 02ff .word 0x2ff
0030000f 9494 .word 0x9494
00300010 34a9 .word 0x34a9
…………………………………
0033fff6 0071 .word 0x71
0033fff7 8458 .word 0x8458
0033fff8 0000 .word 0
0033fff9 0000 .word 0
0033fffa 0000 .word 0
0033fffb 0000 .word 0
0033fffc 0000 .word 0
0033fffd 0000 .word 0
0033fffe 0000 .word 0
0033ffff 0000 .word 0
看不到.sect ".text" 的汇编指令,更奇怪的就是用CCS4.2打开那个7632K的汇编,提示An out of memory error has occurred “”“Runing eclipse ”section of read me for information on preventing tis kind of error in furture
10#:
回复 jianxing ding:
明天给你答复,我需要测试一下,你能告知使用的是哪个版本的编译器(CGT, Code Generation Tools)吗?
我试着有了一个513K的.out文件通过dis2000反汇编出来,反出来之后变成了7632K。用记事本打开发现只有
.sect ".data"
00300000 b2bd .word 0xb2bd
00300001 8f00 .word 0x8f00
00300002 c680 .word 0xc680
00300003 8d40 .word 0x8d40
00300004 02fe .word 0x2fe
00300005 8d00 .word 0x8d00
00300006 02fd .word 0x2fd
00300007 aabd .word 0xaabd
00300008 3b01 .word 0x3b01
00300009 a2bd .word 0xa2bd
0030000a fe24 .word 0xfe24
0030000b 929c .word 0x929c
0030000c 9494 .word 0x9494
0030000d 8d00 .word 0x8d00
0030000e 02ff .word 0x2ff
0030000f 9494 .word 0x9494
00300010 34a9 .word 0x34a9
…………………………………
0033fff6 0071 .word 0x71
0033fff7 8458 .word 0x8458
0033fff8 0000 .word 0
0033fff9 0000 .word 0
0033fffa 0000 .word 0
0033fffb 0000 .word 0
0033fffc 0000 .word 0
0033fffd 0000 .word 0
0033fffe 0000 .word 0
0033ffff 0000 .word 0
看不到.sect ".text" 的汇编指令,更奇怪的就是用CCS4.2打开那个7632K的汇编,提示An out of memory error has occurred “”“Runing eclipse ”section of read me for information on preventing tis kind of error in furture
jianxing ding:
回复 10#:
我用的是CCS4.2 。我想请问下您,是不是不同编译器编译的.out文件,需要用对应版本的CCS安装目录下的dis2000?比如说是用CCS5编译的OUT文件则需要用CCS5目录下的dis2000,用CCS4目录下的dis2000是不是会出问题。那个.out文件我可以发给你,可以告知你的邮箱吗?多谢
我试着有了一个513K的.out文件通过dis2000反汇编出来,反出来之后变成了7632K。用记事本打开发现只有
.sect ".data"
00300000 b2bd .word 0xb2bd
00300001 8f00 .word 0x8f00
00300002 c680 .word 0xc680
00300003 8d40 .word 0x8d40
00300004 02fe .word 0x2fe
00300005 8d00 .word 0x8d00
00300006 02fd .word 0x2fd
00300007 aabd .word 0xaabd
00300008 3b01 .word 0x3b01
00300009 a2bd .word 0xa2bd
0030000a fe24 .word 0xfe24
0030000b 929c .word 0x929c
0030000c 9494 .word 0x9494
0030000d 8d00 .word 0x8d00
0030000e 02ff .word 0x2ff
0030000f 9494 .word 0x9494
00300010 34a9 .word 0x34a9
…………………………………
0033fff6 0071 .word 0x71
0033fff7 8458 .word 0x8458
0033fff8 0000 .word 0
0033fff9 0000 .word 0
0033fffa 0000 .word 0
0033fffb 0000 .word 0
0033fffc 0000 .word 0
0033fffd 0000 .word 0
0033fffe 0000 .word 0
0033ffff 0000 .word 0
看不到.sect ".text" 的汇编指令,更奇怪的就是用CCS4.2打开那个7632K的汇编,提示An out of memory error has occurred “”“Runing eclipse ”section of read me for information on preventing tis kind of error in furture
10#:
回复 jianxing ding:
已经offline处理。不是正常编译出来的.out文件可能不支持直接反汇编,因为信息不全,比如cmd, map等等。
我试着有了一个513K的.out文件通过dis2000反汇编出来,反出来之后变成了7632K。用记事本打开发现只有
.sect ".data"
00300000 b2bd .word 0xb2bd
00300001 8f00 .word 0x8f00
00300002 c680 .word 0xc680
00300003 8d40 .word 0x8d40
00300004 02fe .word 0x2fe
00300005 8d00 .word 0x8d00
00300006 02fd .word 0x2fd
00300007 aabd .word 0xaabd
00300008 3b01 .word 0x3b01
00300009 a2bd .word 0xa2bd
0030000a fe24 .word 0xfe24
0030000b 929c .word 0x929c
0030000c 9494 .word 0x9494
0030000d 8d00 .word 0x8d00
0030000e 02ff .word 0x2ff
0030000f 9494 .word 0x9494
00300010 34a9 .word 0x34a9
…………………………………
0033fff6 0071 .word 0x71
0033fff7 8458 .word 0x8458
0033fff8 0000 .word 0
0033fff9 0000 .word 0
0033fffa 0000 .word 0
0033fffb 0000 .word 0
0033fffc 0000 .word 0
0033fffd 0000 .word 0
0033fffe 0000 .word 0
0033ffff 0000 .word 0
看不到.sect ".text" 的汇编指令,更奇怪的就是用CCS4.2打开那个7632K的汇编,提示An out of memory error has occurred “”“Runing eclipse ”section of read me for information on preventing tis kind of error in furture
Xiao Dong:
你这个代码明显是从器件回读出来的,所有flash内容都当作data来处理了。编译器输出的ELF文件 才会存在段信息。