Some one here can help me ?
In a C program I try to use the assembly instruction RDTSC which ReaDs the CPU Time Stamp Counter and returns the result in EDX:EAX.
The problem is that I dont know how to transfer the values stored in the
registers EDX and EAX to C variables with inlined asm for PGCC.
I managed to develop an high precision timer for with GCC compiler
and i want to do the PGCC version :
unsigned long int edx, eax;
asm volatile (“RDTSC” : “=a”(eax) : “=d”(edx) );
x = edx*4294967296 + eax;
How to initialise C variables from registers ?
Many thanks for your help