Tool/software: TI C/C++ Compiler
Hello,
first, please consider this working example in an assembler file (tooling version is TLS16.9.1), of course only a snippet:
some_c_variable is defined and implemented in a *.c file
local_var .word some_c_variable
;somewhere in assembly code in the same file I can now use e.g.:
LDR R0, local_var
This macro can be used without problem.
Now, I would like to get the same functionality in an inline assembly function, but I failed to access some_c_variable or local_var (if i exported and imported it via .global).
Just for reference, this is something i would like to get working, (this returns [E0001] Undefined symbol )
__asm(" LDR R0, some_c_variable");
Can someone point me in the right direction?
Kind regards,
Christoph