RVDS2.2编译错
我用的是ok6410板代码:bb.s
AREA asmfile, CODE, READONLY
EXPORT asmDouble
IMPORT gVar_1
asmDouble
ldr r0, =gVar_1
ldr r1,
mov r2, #2
mul r3, r1, r2
str r3,
mov pc, lr
END
代码 :ab.c
#include <stdio.h>
int gVar_1 = 12;
extern asmDouble(void);
int main()
{
printf("original value of gVar_1 is: %d", gVar_1);
asmDouble();
printf(" modified value of gVar_1 is: %d", gVar_1);
return 0;
}
DUG设置,make 后 提示:错误
是不是DUG设置错了?应该怎么设置?
页:
[1]