From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,895194e819cbbf0e,start X-Google-Attributes: gid1164f8,public From: "Thomas Womack" Subject: RPCC under Digital Unix Date: 1999/03/05 Message-ID: <7boibj$ehh$1@news.ox.ac.uk>#1/1 X-Deja-AN: 451533555 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 X-Complaints-To: newsmaster@ox.ac.uk X-Trace: news.ox.ac.uk 920636595 14897 163.1.144.64 (5 Mar 1999 12:23:15 GMT) Organization: Oxford University, England Mime-Version: 1.0 NNTP-Posting-Date: 5 Mar 1999 12:23:15 GMT Newsgroups: comp.sys.dec >From what I understand of the specification documents, unsigned long prectime(void) { unsigned long pook,pook2; __asm__ __volatile__("rpcc %0" : "=r" (pook)); pook2 = pook>>32; pook -= pook2<<32; pook2 += pook; return(pook2); } should give me something similar to the results of RDTSC on an x86. Under DU4 on the big Alpha box here, it doesn't; it gives me a result on the order of 10^6, incrementing by about 10^5 per second - which is four orders of magnitude less accuracy than I expected and needed for some calculations about speeds of L1 and L2 cache. What am I doing wrong? Tom