Mail Archives: djgpp/1998/12/30/06:13:09
On Tue, 29 Dec 1998, Christian Hofrichter wrote:
> I have defined labels in my asm-code within a loop, but cannot use the
> "unrool-loops switch" in combination with the "O"-Optimation.
> Everytime I try this, I get the following error:
> "Fatal Error: Symbol XXX already defined" (Where XXX is my
> label)
Use local labels, like this (NOT tested!):
unsigned short x;
for (x=0;x<8;x++)
{
asm("jmp 1f\n\t"
"1:\n\t");
}
The `f' letter stands for FORWARD; use `1b' if you need to jump back.
- Raw text -