comp.lang.ada
 help / color / mirror / Atom feed
From: "patrick.gunia@googlemail.com" <patrick.gunia@googlemail.com>
Subject: Re: Ada Tagged Type-Operation assign?
Date: Sat, 16 May 2009 06:32:54 -0700 (PDT)
Date: 2009-05-16T06:32:54-07:00	[thread overview]
Message-ID: <f646ffe2-7aa7-41d1-8b26-2f8ca3862843@r34g2000vba.googlegroups.com> (raw)
In-Reply-To: wccmy9eut8c.fsf@shell01.TheWorld.com

> Assignment is quite expensive for controlled types (or types containing
> controlled types, etc).  Try 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´s a behaviour I
expectext. Though I still don´t have a clue why this "assign"
operation gets called. I´ve been searching quite a long time to get a
hint, but still haven´t been successfull. I´ll try using the compiler
switches, currently I´ve changed the two tagged types where I found
this method to "normal" private types to see, wether it´s got
something to do with the treatment of tagged types. As soon as I can
tell any results, I´ll post them. If this fails, I´ll go for -gnatG
and -gnatD.





  reply	other threads:[~2009-05-16 13:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-15 13:57 Ada Tagged Type-Operation assign? patrick.gunia
2009-05-15 14:30 ` Ludovic Brenta
2009-05-15 14:53   ` patrick.gunia
2009-05-15 18:16     ` Robert A Duff
2009-05-16 13:32       ` patrick.gunia [this message]
2009-05-16 16:35         ` patrick.gunia
2009-05-16 16:37         ` patrick.gunia
replies disabled

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