Clang optimizes out RDTSC asm blocks thinking the repeated block yields the same as the previous ...
Clang optimizes out RDTSC asm blocks thinking the repeated block yields the same as the previous block. Is this legal?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!
(stackoverflow.com/users/6370128/sandthorn)sandthorn
(stackoverflow.com/users/28128/david-grayson)David Grayson
(stackoverflow.com/users/6370128/sandthorn)sandthorn
A special thanks goes out to the (https://stackoverflow.com/questions/76903792/clang-optimizes-out-rdtsc-asm-blocks-thinking-the-repeated-block-yields-the-same)Stackexchange community
I wish you all a wonderful day! Stay safe :)
inline-assembly rdtsc c++ gcc x86