From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f57db,921381e33656cd5,start X-Google-Attributes: gidf57db,public X-Google-Thread: 1164f8,921381e33656cd5,start X-Google-Attributes: gid1164f8,public From: dccoote@werple.mira.net.au (David Coote) Subject: Using the Process Cycle Counter (PCC) Date: 1997/11/08 Message-ID: <640hjc$or8$2@eplet.mira.net.au>#1/1 X-Deja-AN: 287793788 Organization: werple public-access Internet Newsgroups: comp.sys.dec,comp.benchmarks 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