Severals days ago,i found some interestring things about assemble code which is embedded in c++,so i tried a simple code,it's like this:
EXPORT Add
Add
MOV r12,sp
stmfd sp!,{r4-r11,lr}
add r0,r0,r1
ldmfd sp!,{r4-r11,pc}
END
what i want do is just add two numbers and return their sum,but when i compiled it ,i always get "code inside data section",what's the matter?
Thanks For Any Help!!
EXPORT Add
Add
MOV r12,sp
stmfd sp!,{r4-r11,lr}
add r0,r0,r1
ldmfd sp!,{r4-r11,pc}
END
what i want do is just add two numbers and return their sum,but when i compiled it ,i always get "code inside data section",what's the matter?
Thanks For Any Help!!