Hacker News new | ask | show | jobs
by saagarjha 2095 days ago
By “Intel” I really meant “x86” :P Is there an ARM compiler that recognizes it?
2 comments

Unlikely, intrinsics are CPU, and sometimes CPU model, specific. Compiler builtins will instead use the intrinsic if it's available/suitable or generate equivalent code if it's not.
Ah! Sorry for that; I have no idea.

It seems that at least some ARMs have [timers that can be used](https://electronics.stackexchange.com/q/450971), which is a different strategy, but still more appropriate (I suppose).