This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

loop in asm


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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]