From: "Thomas Womack" <mert0236@sable.ox.ac.uk>
Subject: RPCC under Digital Unix
Date: 1999/03/05 [thread overview]
Message-ID: <7boibj$ehh$1@news.ox.ac.uk> (raw)
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
next reply other threads:[~1999-03-05 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-05 5:00 Thomas Womack [this message]
1999-03-05 5:00 ` RPCC under Digital Unix Thomas Womack
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox