Hi,
I'm trying to use C variables inside inline assembly code, but can't
get it to work (the compiler is gcc).
static const short g_psMyArray asm("g_psAsmMyArray:") =
{ 1, 2, 3, 4};
void myfunc()
{
asm("ADRL r14, psAsmMyArray");
}
This results with an error (something like "symbol is undefined in
current file").
Anyone knows how to do this kind of thing ?
Thanks in advance,
MBMessage
Inline assembly and C variables
2006-05-06 by MB