ADR R3,JUMPTABLE
LDR R5,[R3,R0,LSL#2]
提示这个错误
4.s(15): error: A1867E: Immediate 0x00000002 out of range for this operation. Permitted values are multiples of 4 from 0x00000000 to 0x000003FF
说的是0x00000002超出范围了,应该是4的整数倍
ADR是将jumptable 的地址存储在R3中,是0x00000002 不符合,所以应该改为
ADR R3,JUMPTABLE+2
可以参考http://blog.csdn.net/he_ning/article/details/37569779
char *src = “hello” 中的src是指向第一个字符‘h’的一个指针
char src[20] = “hello” 中数组名src也是执行数组第一个字符‘h’的指针