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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b49d3a703a4b4db5 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet 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!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: compiler settings in AdaGIDE Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <02d1f899-ad8f-493b-8f64-3791868a1bdb@q35g2000yqn.googlegroups.com> <43960a8a-334f-4192-8efe-9e8261010789@w31g2000yqb.googlegroups.com> <7fbf1431-3e0a-4cf1-954f-fb81ccc6c44d@y11g2000yqm.googlegroups.com> Date: Mon, 26 Jul 2010 19:12:03 +0200 Message-ID: NNTP-Posting-Date: 26 Jul 2010 19:12:03 CEST NNTP-Posting-Host: 63b1859e.newsspool4.arcor-online.net X-Trace: DXC=?KUhBB6\oKd]BlmkiiU@Bi4IUK On Mon, 26 Jul 2010 08:48:58 -0700 (PDT), sjw wrote: > On Jul 26, 3:13�pm, Ada novice wrote: >> On Jul 25, 9:30 pm, "Jeffrey R. Carter" >> >> wrote: >>> On 07/25/2010 06:29 AM, Ada novice wrote: >>> > 1. I see that you use -gnatnp. Is this safe to do so i.e. to suppress >>> > all checks? >>> No, but it is a little faster. You asked about maximizing speed, not about >>> safety. Of course, none of this is going to make a significant difference, as >>> you found out yourself. Significant speed changes come about from improved >>> algorithms. The correct approach is to implement correctly, clearly, and safely, >>> then measure against your timing requirements (which are unspecified), and only >>> make changes if the result fails to meet the timing requirements. >> >> Thanks. I understand. I would prefer to keep the -gnatn just to be >> safe. > > -gnatp to suppress checks. -gnatn is about inlining. The gentleman's set is: debug -gnatVa all validity checks on -gnatf show all errors messages -gnato integer overflow check -g add debug info -fstack-check check stack overflow release -gnatVa -gnatf -gnato -O2 medium level optimization -gnatn inline as defined by the user -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de