delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/29/16:39:38

Message-ID: <36894BAB.61D18F84@gmx.de>
Date: Tue, 29 Dec 1998 22:37:47 +0100
From: Christian Hofrichter <ChristianHofrichter AT gmx DOT de>
X-Mailer: Mozilla 4.5 [de]C-CCK-MCD QXW03201 (Win95; I)
X-Accept-Language: de,en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Can't unroll loops when using "-O" Optimation and having defined labels
with asm
Reply-To: djgpp AT delorie DOT com

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)
This also happens when I write the correct (I think so) but nonsense
code:

unsigned short x;
for (x=0;x<8;x++)
{
asm("jmp end\n\t"
       "end:\n\t");
}
How can I avoid this ?
Even the "volatile" command after asm did not help !


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019