We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
IMPORT function_name
bl function_name
__asm void foo(void){ PUSH{r4,lr}; BL __cpp(some_func); POP {r4,pc};}
__asm void foo(void){ LDR r0,=__cpp(some_func); BX r0;}
#include <string.h>__asm int myasm(char *r0){ B __cpp(strlen);}int main(void){ return myasm("abcd");}
#include <string.h>__asm int myasm(char *r0){ B __cpp(strlen);}int main(void){ return myasm("abcd");}Compiles and links quite happily.