Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: dccoote@werple.mira.net.au (David Coote)
Subject: Using the Process Cycle Counter (PCC)
Date: 1997/11/08	[thread overview]
Message-ID: <640hjc$or8$2@eplet.mira.net.au> (raw)


A helpful chap at one of DEC's research labs told me about the PCC on the 
Alpha and how to access it using the rpcc assembler instruction. After 
battling through the references in the Architecture manual etc it appears 
that you can use the PCC to get a latency in cycles between rpcc calls and 
also the number of cycles the calling process/thread has used between calls.

The rpcc call is also much less intrusive than using UNIX system calls such as 
clock(). We've found overheads measured in cycles.

I was wondering if anyone has used this facility much and, if so, if they have 
found any traps for young players. One problem is the relatively rapid 
wrap-around of the lower 32 bits on, say, a 4100 with 466MHz chips. I'd be 
interested in any other quirks anyone has found.

David




             reply	other threads:[~1997-11-08  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-08  5:00 David Coote [this message]
1997-11-08  5:00 ` Using the Process Cycle Counter (PCC) James Van Buskirk
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