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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,47fc49812a5e8e38 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!not-for-mail From: =?iso-8859-15?Q?Yannick_Duch=EAne_=28Hibou57=29?= Newsgroups: comp.lang.ada Subject: Re: small example, using complex variables in Ada Date: Thu, 17 Jun 2010 16:39:27 +0200 Organization: Ada At Home Message-ID: References: <6e70b80b-3030-479f-8378-d1281d1fa847@d37g2000yqm.googlegroups.com> <4c1016f3-ff7b-456f-b0e2-0a79985ebc9e@b35g2000yqi.googlegroups.com> NNTP-Posting-Host: Ytbm1wnfaYrLLNPp/2uoww.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.53 (Win32) Xref: g2news1.google.com comp.lang.ada:11799 Date: 2010-06-17T16:39:27+02:00 List-Id: Le Thu, 17 Jun 2010 09:44:27 +0200, Gautier write-only = a =E9crit: > Just a note for those who are not aware of and who'd be tempted to > unroll loops by hand: compilers are able to unroll loops themselves. > For instance GNAT has a -funroll-loops for a long time (and also - > fpeel-loops and -funswitch-loops). Either by hand or by compiler optimizer, loop unroll does not assure = better performance, and had even been noticed to give less better = performance. -- = There is even better than a pragma Assert: a SPARK --# check. --# check C and WhoKnowWhat and YouKnowWho; --# assert Ada; -- i.e. forget about previous premises which leads to conclusion -- and start with new conclusion as premise.