| delorie.com/archives/browse.cgi | search |
| Date: | Wed, 30 Dec 1998 10:52:23 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | Christian Hofrichter <ChristianHofrichter AT gmx DOT de> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: Can't unroll loops when using "-O" Optimation and having defined labels with asm |
| In-Reply-To: | <36894BAB.61D18F84@gmx.de> |
| Message-ID: | <Pine.SUN.3.91.981230105159.21377L-100000@is> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |