I have a pretty simple program below 

void foo()
{
    int r5 = 0;
    int a = 0;
    asm
    (
        "mov r5, $4\n\t"
        "add r5, a"
    );
}

void main (void)
{
    foo();
}

When I compile it, I get:

/tmp/ccM76e6z.s: Assembler messages:
/tmp/ccM76e6z.s:36: Error: undefined symbol a used as an immediate value


My gcc version:

gcc (Debian 4.6.3-14) 4.6.3






-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to