inline assembly in gcc
Hi All,
I am trying to compile the following the inline assmebly code in linux. But it gives error. Your help will be very useful to me.
void main()
{
__asm__(
"movl %esi, 0x8(%esi)"
"movb $0x0, 0x7(%esi) "
"movl $0x0, 0xc(%esi) "
);
}
These are the errors
/tmp/cc42yoOW.s: Assembler messages:
/tmp/cc42yoOW.s:12: Error: ignoring junk `(%esi)movb $0x0' after expression
/tmp/cc42yoOW.s:12: Error: too many memory references for `mov'
bash-2.04$
Thanks in advance,
Gursev
|