From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9486 invoked from network); 12 Jan 1999 03:17:12 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 12 Jan 1999 03:17:12 -0000 Received: from julia.creaholic.com (euclid.creaholic.com [194.209.56.210]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA15069 for ; Mon, 11 Jan 1999 21:55:32 -0500 Received: from amazing.ch ([194.209.56.213]) by julia.creaholic.com (Post.Office MTA v3.1.2 release (PO205-101c) ID# 0-44790U100L100S0) with SMTP id AAA12611 for ; Tue, 12 Jan 1999 03:55:24 +0100 Received: by amazing.ch id <6tzw@amazing.ch>; Tue, 12 Jan 1999 03:55:00 GMT To: axp-list@redhat.com Organization: sometimes private, sometimes creaholic sa From: axp@amazing.ch (Christoph Dworzak) Subject: rpcc Message-Id: <278e88a7.u10t12e.df8c-axp@amazing.ch> Date: Tue, 12 Jan 1999 03:55:00 GMT Hi With some help from this list, I'm getting better with axp-asm :) Now my next question is, how do I measure the speed of my code? My test looks like this: -------------------------------------------------------- unsigned long c1, c2, ccm=~0UL, ccs=0, n; for (n=0; n<(1UL<<19); n++){ asm volatile("rpcc %0" : "=r"(c1) : : "memory"); core(); asm volatile("rpcc %0" : "=r"(c2) : : "memory"); c1 = (c1 + (c1<<32)) >> 32; c2 = (c2 + (c2<<32)) >> 32; c2 = (c2>c1) ? c2-c1 : c2+(1UL<<32)-c1; ccs += c2; if (c2