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,677065ed1513ef3b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!r34g2000vba.googlegroups.com!not-for-mail From: "patrick.gunia@googlemail.com" Newsgroups: comp.lang.ada Subject: Re: Ada Tagged Type-Operation assign? Date: Sat, 16 May 2009 06:32:54 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <003ad11c-1161-4867-9453-28eaf5663f04@r13g2000vbr.googlegroups.com> NNTP-Posting-Host: 78.34.66.221 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1242480774 25006 127.0.0.1 (16 May 2009 13:32:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 16 May 2009 13:32:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r34g2000vba.googlegroups.com; posting-host=78.34.66.221; posting-account=D7TrwwoAAAAVyN71CASRiSp392RIjlsB User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.64 (Windows NT 5.1; U; de) Presto/2.1.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5871 Date: 2009-05-16T06:32:54-07:00 List-Id: > Assignment is quite expensive for controlled types (or types containing > controlled types, etc). =A0Try out to the -gnatD and/or -gnatG switches > to see what's going on under the covers. This is, what I also expected, because of calling Adjust, Finalize and Initialize on instances of these types. VTune tells me the number of times these methods are called for my controlled types, this is acceptable, simply because of the fact, that it=B4s a behaviour I expectext. Though I still don=B4t have a clue why this "assign" operation gets called. I=B4ve been searching quite a long time to get a hint, but still haven=B4t been successfull. I=B4ll try using the compiler switches, currently I=B4ve changed the two tagged types where I found this method to "normal" private types to see, wether it=B4s got something to do with the treatment of tagged types. As soon as I can tell any results, I=B4ll post them. If this fails, I=B4ll go for -gnatG and -gnatD.