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,eca91508b02e7e97 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Amount of copying on returned constant objects Date: Tue, 19 Jun 2007 13:22:34 +0300 Message-ID: <5dpp3dF352p0uU1@mid.individual.net> References: <5dfsfnF1qav8bU1@mid.individual.net> <87ejkd5gbq.fsf@ludovic-brenta.org> <5dntheF35jc57U2@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: individual.net pdgTb8qnWNMg0uWhp9D4eQrcqgj7uEArxVImu9Qb4jx6sjENw= User-Agent: KNode/0.10.5 Xref: g2news1.google.com comp.lang.ada:16232 Date: 2007-06-19T13:22:34+03:00 List-Id: Alex R. Mosteo wrote: > Ludovic Brenta wrote: > >> If you investigate GNAT, could you please post your findings here? > > I'll do, but I'm not sure if I will do this anytime soon :/ I tried a bit last night, with a quick and dirty test program. There's no such optimization for GNAT GPL 2007 with -O2/-O3. I don't know about more esoteric optimization switches. I was going to paste this code but it has vanished from my /tmp folder (silly me) after boot. Oh well, perhaps I'll rewrite it.