[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Asm function to count clock ticks

I try to count clock ticks on my itanium with the asm
assembly code line included in a C program:

 __asm__ __volatile__("mov %0=ar.itc" : "=r"((t).tick) ::

where (t).tick is a unsigned long int and i got the
following message when i compiled it:

 Can't find a register in class `AR_M_REGS' while
reloading `asm'.

Does anyone encounter the same kind of message while
trying to include asm in his C program ?


David Defour
Profitez de l'offre exceptionnelle Tiscali !
"Internet Gratuit le Jour"
Cliquez ici, http://register.tiscali.fr/forfaits_ls/
Offre soumise à conditions.

To UNSUBSCRIBE, email to debian-ia64-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: