loop in asm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux