comp.lang.ada
 help / color / mirror / Atom feed
* Ada Tagged Type-Operation assign?
@ 2009-05-15 13:57 patrick.gunia
  2009-05-15 14:30 ` Ludovic Brenta
  0 siblings, 1 reply; 7+ messages in thread
From: patrick.gunia @ 2009-05-15 13:57 UTC (permalink / raw)


Hi all,

I got a question concerning Ada-Tagged-Type implementation. I´m
currently comparing two versions of a program written in Ada, one uses
tagged types, the other one doesn´t. I use VTune to evaluate the
runtime-performance of both versions and found that the call graph
display of vtunes shows one function in the tagged-type version which
gets called massively whereas there aren´t any calls to these
functions in my "non-tagged-type-version". This operation isn´t
declared by me, thus it has to be provided by the system. The
operation is named "assign". The funny thing about this is, that this
operations gets only called for tagged types which aren´t inherited,
all my other tagged types which are organized in class hierarchies don
´t show this behaviour. It might be important that these types are
aubclasses from Ada.Finalization.Controlled, maybe that´s a reason why
I don´t find the "assign"-operation.
So, now here are my questions:
Is the operation "assign" automatically provided for tagged types?
If so, is there any possibility to control this method or do I have to
accept it?

The reason for my second question simply is the fact, that the self
time of the function is not relevant (0,00ms), though when it gets
called 3 billion times, it starts to be a relevant factor for
performance differences...

Thanks for your help,
Patrick



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-05-16 16:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2009-05-16 16:35         ` patrick.gunia
2009-05-16 16:37         ` patrick.gunia

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