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: a07f3367d7,103803355c3db607 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.182.77 with SMTP id cb13mr1323546qab.5.1343313384582; Thu, 26 Jul 2012 07:36:24 -0700 (PDT) Received: by 10.66.74.40 with SMTP id q8mr1617437pav.19.1343313384326; Thu, 26 Jul 2012 07:36:24 -0700 (PDT) Path: a15ni105485768qag.0!nntp.google.com!q21no14513954qas.0!news-out.google.com!b9ni64802036pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.swapon.de!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Keean Schupke Newsgroups: comp.lang.ada Subject: Re: GNAT (GCC) Profile Guided Compilation Date: Thu, 19 Jul 2012 03:18:00 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1d43d50c-1447-43c9-8370-9a5ce81d2879@googlegroups.com> References: <520bdc39-6004-4142-a227-facf14ebb0e8@googlegroups.com> <4ff08cb2$0$6575$9b4e6d93@newsspool3.arcor-online.net> <4ff1d731$0$6582$9b4e6d93@newsspool3.arcor-online.net> <4ff41d38$0$6577$9b4e6d93@newsspool3.arcor-online.net> <26b778c4-5abc-4fbf-94b0-888c2ce71831@googlegroups.com> <4ff43956$0$6576$9b4e6d93@newsspool3.arcor-online.net> <2dba1140-4f28-4fb8-ace4-2c10f3a02313@googlegroups.com> <505460ad-495d-41b4-a88f-e95eb99a6be3@googlegroups.com> <50068967$0$9507$9b4e6d93@newsspool1.arcor-online.net> <50079e21$0$9502$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: 91.143.78.202 Mime-Version: 1.0 X-Trace: posting.google.com 1342693080 30492 127.0.0.1 (19 Jul 2012 10:18:00 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 19 Jul 2012 10:18:00 +0000 (UTC) In-Reply-To: <50079e21$0$9502$9b4e6d93@newsspool1.arcor-online.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.143.78.202; posting-account=T5Z2vAoAAAB8ExE3yV3f56dVATtEMNcM User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-07-19T03:18:00-07:00 List-Id: On Thursday, 19 July 2012 06:42:05 UTC+1, Georg Bauhaus wrote: > On 18.07.12 19:36, Keean Schupke wrote: > > I think if you use -O3 -gnatn (and pragma Inline(X)) the function will be inlined. Does it still make a difference then? > > It did. In particular, A_T_A_Conversion seemed to need -gnatN. > The differences were small, in a range between .67s and .73s > for 50_000_000 iterations, trying a number of combinations of > switches. I haven't tried profile guided optimization, though. Here's my makefile if its useful: test: test.adb rm -f *.gcda gnatmake -march=native -O3 -fprofile-generate -ftest-coverage -gnatp -gnatn test -bargs -shared -cargs -fdata-sections -ffunction-sections -largs -Wl,--gc-sections ./test touch test.adb gnatmake -march=native -O3 -fprofile-use -gnatp -gnatn test -bargs -shared -cargs -fdata-sections -ffunction-sections -largs -Wl,--gc-sections Cheers, Keean.