I was trying to compile the following code from this question and it fails to compile with: error C2059: syntax error: 'volatile'
#include<stdint.h>
#include<stdio.h>
static inline uint64_t rdtscp( uint32_t & aux )
{
uint64_t rax,rdx;
asm volatile ( "rdtscp\n" : "=a" (rax), "=d" (rdx), "=c" (aux) : : );
return (rdx << 32) + rax;
}
I was using x64 msvc v19(WINE) compiler without any flags on godbolt