From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,d79af07892182421 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-12-13 05:56:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!ihug.co.nz!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail Newsgroups: comp.unix.tru64 Subject: Re: Measuring VERY short durations References: <3df9b8da$0$22996$626a54ce@news.free.fr> <874r9i3zar.fsf@student.uni-tuebingen.de> <3df9e50d$0$18245$626a54ce@news.free.fr> From: duane@hunch.zk3.dec.com (Andrew Duane USG) Message-ID: <9GlK9.17$3z.173147@news.cpqcorp.net> Date: Fri, 13 Dec 2002 13:56:21 GMT NNTP-Posting-Host: 16.140.48.49 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1039787781 16.140.48.49 (Fri, 13 Dec 2002 05:56:21 PST) NNTP-Posting-Date: Fri, 13 Dec 2002 05:56:21 PST Organization: Hewlett-Packard Company Xref: archiver1.google.com comp.unix.tru64:9260 In article <3df9e50d$0$18245$626a54ce@news.free.fr> "JF Larvoire" writes: >Hello, > >I tried it, but it does not seem to work: >It compiles OK, but when I test it with in the trivial attached program, I >get this result: > Sum 1 done in 9 cycles. > Sum 2 done in 6 cycles. I ran this on my EV5-based 4100 station. I think the problem is our too-smart-for-its-own-good compiler. Did you compile this optimized (-O2)? When I did that, the loops were optimized out and the RPCC instructions were inlined almost next to each other, giving me 3 and 1 cycles. With -g instead of -O2, I got 128 and 300 cycles. -- Andrew L. Duane (JOT-7) duane@zk3.dec.com HP/Compaq Corporation Andrew.Duane@compaq.com 110 Spit Brook Road Andrew.Duane@hp.com M/S ZKO3-3/U14 Nashua, NH 03062-2698 (603)-884-1294