From: holsti@cs.Helsinki.FI (Niklas Holsti)
Subject: Re: loop and block question
Date: 1997/03/16
Date: 1997-03-16T00:00:00+00:00 [thread overview]
Message-ID: <holsti.858505278@hydra> (raw)
In-Reply-To: E4yCBo.FrC@world.std.com
In <E4yCBo.FrC@world.std.com> bobduff@world.std.com (Robert A Duff) writes:
>In article <32F3D3BA.4B88@ssf.fi>, Niklas Holsti <Niklas.Holsti@ssf.fi> wrote:
>>I found a surprising use for statement labels when automating the
>>timing measurements of an Ada program. A debugger script is used to
>>measure the time of a certain section of a subprogram. I delimited the
>>section to be measured with statement labels, thus:
>Sounds highly unreliable. If there are no gotos, the compiler can
>freely move code across the labels, so any timing measurements are
>highly suspect.
...
>Highly questionable, IMHO, unless you looked at the machine code output,
>and verified that no code was moved past those labels.
Sure, I looked at the machine code output, but thanks for bringing out
the need to do so. For my uses, the timed code between the labels is
generally one or two subprogram calls.
>- Bob
Niklas Holsti
Space Systems Finland Ltd, phone +358 9 6132 8625
Keilaranta 8, FIN-02150 Espoo, Finland
prev parent reply other threads:[~1997-03-16 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-29 0:00 loop and block question Jacob Sparre Andersen
1997-01-29 0:00 ` Robert A Duff
1997-01-29 0:00 ` Steve Jones - JON
1997-01-29 0:00 ` Robert A Duff
[not found] ` <E4wHKC.FB5@thomsoft.com>
[not found] ` <32F3D3BA.4B88@ssf.fi>
[not found] ` <E4yCBo.FrC@world.std.com>
1997-03-16 0:00 ` Niklas Holsti [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox