From: cis.ohio-state.edu!news.sei.cmu.edu!firth@ucbvax.Berkeley.EDU (Robert Fi
Subject: Re: ADA Performance
Date: 3 May 93 11:54:49 GMT [thread overview]
Message-ID: <1993May3.075449.12264@sei.cmu.edu> (raw)
In article <1993Apr28.204735.19177@netfs.dnd.ca> BERRYMAN@orca.drep.dnd.ca (DON
BERRYMAN) writes:
>begin
>
> for i in v1'range loop
> v1(i) := cmplx(1.0,2.0);
> v2(i) := cmplx(0.1,0.2);
> end loop;
>
> start := clock; -- Note the start time
>
> for n in 1..100 loop -- Do the Vector Sum 100 times
> a := cmplx (0.0, 0.0);
> for i in v1'range loop
> a := a + v1(i) * v2(i);
> end loop;
> end loop;
As a matter of interest, did any of the copmpilers optimise away the
entire program? In principle, value tracking and constant folding
can compute the final value of A at compile time.
next reply other threads:[~1993-05-03 11:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-05-03 11:54 cis.ohio-state.edu!news.sei.cmu.edu!firth [this message]
-- strict thread matches above, loose matches on Subject: below --
1993-05-04 19:31 ADA Performance Robert I. Eachus
1993-05-04 15:18 Boris Pelakh
1993-05-04 15:03 cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!howland.
1993-05-03 21:21 Robert I. Eachus
1993-04-30 17:18 ADA performance Wes Groleau X7574
1993-04-29 17:08 ADA Performance Jeffrey M. Creem x5700
1993-04-29 16:12 Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox