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: 103376,b49d3a703a4b4db5 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!y11g2000yqm.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: compiler settings in AdaGIDE Date: Mon, 26 Jul 2010 08:48:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7fbf1431-3e0a-4cf1-954f-fb81ccc6c44d@y11g2000yqm.googlegroups.com> References: <02d1f899-ad8f-493b-8f64-3791868a1bdb@q35g2000yqn.googlegroups.com> <43960a8a-334f-4192-8efe-9e8261010789@w31g2000yqb.googlegroups.com> NNTP-Posting-Host: 20.133.0.13 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1280159339 14059 127.0.0.1 (26 Jul 2010 15:48:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 26 Jul 2010 15:48:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y11g2000yqm.googlegroups.com; posting-host=20.133.0.13; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:12584 Date: 2010-07-26T08:48:58-07:00 List-Id: On Jul 26, 3:13=A0pm, 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 ab= out > > safety. Of course, none of this is going to make a significant differen= ce, as > > you found out yourself. Significant speed changes come about from impro= ved > > algorithms. The correct approach is to implement correctly, clearly, an= d 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.