Hi,
I have tried locating information for the syntax of inline
assembler using
asm-blocks for a Mac Book Pro but have not been unable to
find any.
The syntax does not seem to fully match any existing
syntax.
For example,
File test.c
void foo()
{
register int _myreg ; <--- doesn't like it
int _another_reg ; ok
asm {
push ebp ; ok
mov eax, 2(ebp) ; <--- doesn't like it
pop ebp ; ok
}
}
gcc -fasm-blocks test.c -o foo
Does anyone know why I am getting these errors? Maybe I'm
just doing
something plain silly! Is there any good documentation out
there for Mac
Book Pro inline Assembler on Intel Dual Core 2 processors?
Thanks,
Joseph
____________________________________________________________
_____
Win tickets to the sold out Live Earth concert! http://liveearth.uk.msn.c
om
_______________________________________________
APPLe mailing list
APPLe lists.apnic.net
http:
//mailman.apnic.net/mailman/listinfo/apple
|