delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/28/15:16:52

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: error optimisation with label
Date: Sun, 28 Dec 1997 20:56:55 +0100
Organization: Lehrstuhl fuer Stroemungsmechanik
Lines: 26
Message-ID: <34A6AF07.CC9A9F21@LSTM.Ruhr-UNI-Bochum.De>
References: <34A69FB7 DOT 4CE AT bluewin DOT ch>
NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

leger_v AT bluewin DOT ch wrote:
> 
> Could someone tell me why when I put any labels (ex : loop3 : ...)
> in my inline assembly, I obtain when I compile my program, only with
> optimisation -O3 :
> "fatal error : loop3 already defined"

Because -O3 enables loop unrolling, so the name loop3 gets reused.
I think you have to use something like unnamed labels or relative
jumps, but better wait for the answer of an assembler guru ;-)


-- 
Ciao
Tom

*************************************************************
* Thomas Demmer                                             *
* Lehrstuhl fuer Stroemungsmechanik                         *
* Ruhr-Uni-Bochum                                           *
* Universitaetsstr. 150                                     *
* D-44780  Bochum                                           *
* Tel: +49 234 700 6434                                     *
* Fax: +49 234 709 4162                                     *
* http://www.lstm.ruhr-uni-bochum.de/~demmer                *
*************************************************************

- Raw text -


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