loop in asm
ranjith kumar
ranjit_kumar_b4u@yahoo.co.uk
Sun Nov 12 20:36:00 GMT 2006
Hi
I wrote the following program.
When I compiled it by "gcc -Wall 1.c", I did not get
any compilation errors.
But surprisingly I got compilation error when I
compiled it by "gcc -O3 -Wall 1.c", I got comilation
error saying that label .JIT already defined .
How to solve it?
Thanks in advance.
-------------------------------------------------------
#include<stdio.h>
void fun()
{
asm volatile (" movl $0xFFFFFFFF, %%ecx;"
".JIT: \n;"
"loop .JIT\n;"
:
:
:"%ecx");
}
int main()
{
fun();
return 0;
}
Send instant messages to your online friends http://uk.messenger.yahoo.com
More information about the Gcc-help
mailing list