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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,325a055bed62c230 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Apex vs GNAT on solaris Date: 1999/12/08 Message-ID: <82ktik$j4c$1@nnrp1.deja.com>#1/1 X-Deja-AN: 557808712 References: <82hiuj$74o$1@nnrp1.deja.com> <82hnll$ahu$1@nnrp1.deja.com> <82hokf$b9l$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x27.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Dec 08 06:24:23 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-12-08T00:00:00+00:00 List-Id: In article <82hokf$b9l$1@nnrp1.deja.com>, reason67@my-deja.com wrote: > This is true. I was actually personally concerned with the > defaults that both compilers used. It is completely meaningless to measure GNAT at -O0. The basic code generation technique used is designed to generate extremely inefficient code at this level, in a manner which is often hard to duplicate with a hand written code generator :-) >From time to time we have discussed making the default -O2 -gnatn, *precisely* so that naive benchmarks run with default options look better :-) Seriously, you have to decide what you are doing here. If you are measuring performance, then you need to make sure you are selecting comparable levels of optimization. If all you want to do is to find out the default options used for optimization, then it is more efficient to simply read the manuals to find this out, than to run meaningless comparisons of times. > > You also need to specify all other parameters. For instance, > > if you are running tasking, make sure you are comparing > > comparable underlying threads implementations, otherwise you > > again have apples and oranges (e.g. which of the two threads > > libraries did you use for GNAT). Sent via Deja.com http://www.deja.com/ Before you buy.