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 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-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.straub-nv.de!open-news-network.org!noris.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Fri, 23 Jul 2010 16:54:29 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: compiler settings in AdaGIDE References: <95bd10c9-8747-4f02-b20b-8d4244465949@5g2000yqz.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4c49ad26$0$6880$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 23 Jul 2010 16:54:30 CEST NNTP-Posting-Host: 97b35e54.newsspool2.arcor-online.net X-Trace: DXC=_Jb0W=NCA]S@>[RYkFXOIPA9EHlD;3YcR4Fo<]lROoRQ8kFZLh>_cHTX3j]eE`5BUFRe

On 23.07.10 16:17, Ada novice wrote: > Hi, > Thanks for your kind help. As I mentioned earlier, I use > > -gnatVa -O3 -gnatn -funroll-loops -gnatf -gnato -O3 may already trigger inlining an loop unrolling. The GNAT Guides, including GCC docs, explain this. They have been installed with GNAT on your computer. The versions installed with your compiler should match the software installed, perhaps more than any other version of these same docs you find on the net. Last time I checked the sections on optimization in the GNAT docs recommend -O2 -funroll-loops IIRC. One thing you could do---after showing that your program is correct---is remove numeric overflow checking (-gnato). Or turn off all checks (-gnatp). The program is no standard Ada program then, but since your program is correct... :-) Another thing is playing with object sizes. Lots of risk and disappointment ahead, though! Sometimes a definition of a type can be altered such that its representation uses only 32 bits on some 64 bit computer, which may or may not be good for your program. > and so the -O3 is already there though the .ago file doesn't state it. > I have tried to put all of your options at once so as to have: > > -gnatVa -O3 -gnatn -funroll-loops -gnatf -gnato -fpeel-loops -ftracer - > funswitch-loops -fweb -frename-registers -mfpmath=sse -msse3 Does your program use floating point types? Georg