From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.52.36.197 with SMTP id s5mr739463vdj.5.1410446949589; Thu, 11 Sep 2014 07:49:09 -0700 (PDT) X-Received: by 10.50.117.7 with SMTP id ka7mr35083igb.2.1410446949449; Thu, 11 Sep 2014 07:49:09 -0700 (PDT) Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!s7no62027qap.1!news-out.google.com!ef6ni2722igb.0!nntp.google.com!r10no170297igi.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 11 Sep 2014 07:49:08 -0700 (PDT) In-Reply-To: <0b68f842-b99d-40ce-bada-a66e6dbc4e79@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: <0868c42e-ed44-4b36-a929-2bffb338ee34@googlegroups.com> <0b68f842-b99d-40ce-bada-a66e6dbc4e79@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <170fc6ce-26bf-4376-b70e-789dabf4f3a0@googlegroups.com> Subject: Re: Assuming optimization? What is best of these code alternatives? From: Adam Beneschan Injection-Date: Thu, 11 Sep 2014 14:49:09 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:188968 Date: 2014-09-11T07:49:08-07:00 List-Id: On Thursday, September 11, 2014 7:20:00 AM UTC-7, gautier...@hotmail.com wrote: > In any case the value i1 + i2 is the initial value for the loop, so even a totally non-optimizing compiler will compute the initial loop value once. You also missed the outer loop. Please see my other response. -- Adam