comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: compiler settings in AdaGIDE
Date: Fri, 23 Jul 2010 16:54:29 +0200
Date: 2010-07-23T16:54:30+02:00	[thread overview]
Message-ID: <4c49ad26$0$6880$9b4e6d93@newsspool2.arcor-online.net> (raw)
In-Reply-To: <f72678ba-23ce-4c9a-b17e-b33fbd45300d@l14g2000yql.googlegroups.com>

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



  parent reply	other threads:[~2010-07-23 14:54 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-23  9:52 compiler settings in AdaGIDE Ada novice
2010-07-23 11:56 ` Gautier write-only
2010-07-23 14:23   ` Ada novice
     [not found]   ` <f72678ba-23ce-4c9a-b17e-b33fbd45300d@l14g2000yql.googlegroups.com>
2010-07-23 14:54     ` Georg Bauhaus [this message]
2010-07-23 15:16       ` Robert A Duff
2010-07-23 15:22         ` Georg Bauhaus
2010-07-23 16:51           ` sjw
2010-07-23 18:03             ` Robert A Duff
2010-07-23 18:27               ` Ada novice
2010-07-23 20:33                 ` Simon Wright
2010-07-23 19:31               ` Dmitry A. Kazakov
2010-07-23 21:01                 ` Robert A Duff
2010-07-23 22:32                   ` Peter C. Chapin
2010-07-24  1:48                   ` BrianG
2010-07-23 20:34               ` Simon Wright
2010-07-23 20:52                 ` Robert A Duff
2010-07-24 10:30                   ` Ada novice
2010-07-24 12:03                     ` Robert A Duff
2010-07-24 12:36                       ` Ada novice
2010-07-24 18:21 ` jonathan
2010-07-25 13:29   ` Ada novice
2010-07-25 19:30     ` Jeffrey R. Carter
2010-07-26 14:13       ` Ada novice
2010-07-26 15:48         ` sjw
2010-07-26 17:12           ` Dmitry A. Kazakov
2010-07-26 17:18           ` Ada novice
2010-07-25 22:57     ` jonathan
2010-07-26 14:12       ` Ada novice
2010-07-25 23:40     ` jonathan
2010-07-26  8:02   ` Making measurements (Was: compiler settings in AdaGIDE) Jacob Sparre Andersen
2010-07-26  9:57     ` jonathan
2010-07-26 13:50       ` Making measurements Jacob Sparre Andersen
2010-07-27 15:11   ` compiler settings in AdaGIDE Colin Paul Gloster
2010-08-01 16:39     ` Ada novice
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox