KEIL MDK4.10,一个ARM汇编出错,链接失败,求助。。。
时间:10-02
整理:3721RD
点击:
工程只有一个文件,代码如下:
AREA EXAMPLE01,CODE,READONLY
ENTRY ;3个数比较大小,从大到小排列.
CODE32
CMP LDR R0,=0X30007000
LDR R1,=5 ;初始化,从前往后赋3个初值,5,8,6
STR R1,[R0]
LDR R1,=8
STR R1,[R0,#4]
LDR R1,=6
STR R1,[R0,#8]
LDR R1,[R0]
LDR R2,[R0,#4]
CMP R1,R2
BHI NEXT1
STR R2,[R0]
STR R1,[R0,#4]
NEXT1 LDR R1,[R0,#4]
LDR R2,[R0,#8]
CMP R1,R2
BHI NEXT2
STR R2,[R0,#4]
STR R1,[R0,#8]
NEXT2 LDR R1,[R0]
LDR R2,[R0,#4]
CMP R1,R2
BHI NEXT3
STR R2,[R0]
STR R1,[R0,#4]
NEXT3 MOV R1,#0X0D
STRB R1,[R0,#0X0C]
NOP
NOP
END
编译出现的提示是:
test01.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.
test01.sct: Not enough information to produce a FEEDBACK file.
test01.sct: Not enough information to list image symbols.
test01.sct: Not enough information to list the image map.
test01.sct: Finished: 3 information, 1 warning and 1 error messages.
"test01.axf" - 1 Error(s), 1 Warning(s).
大神,求解。