delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/01/11:06:57

From: nikki AT gameboutique DOT co (nikki)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Loop unrolling: Don't bother
Date: 1 Mar 1997 10:20:14 GMT
Organization: GameBoutique Ltd.
Lines: 14
Message-ID: <5f8vsu$g84@flex.uunet.pipex.com>
References: <5f5knj$cho AT freenet-news DOT carleton DOT ca>
<01bc252e$b1edb440$82081ecb AT sly>
NNTP-Posting-Host: www.gameboutique.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> Is it possible that with the -O3 option, the compiler sees that these are
> indeed constant iteration loops, and unrolls them itself?  Try it with -O0
> option, because this should turn off all optimisation.  -O3 is the highest
> level of optimisation available.

i'm fairly sure o3 doesn't unroll loops, or at least it's never unrolled any
of mine ;) you can also use o4 no? at least i thought you could..

regards,
nik

-- 
Graham Tootell           
nikki AT gameboutique DOT com  

- Raw text -


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