News for hackers. Stuff that matters.
Re:Getting 4 bytes or a full cache line: same speed or not? by londons_explore on Wednesday August 01, 2018 @06:37AM (#17661269)
You don't need to use rtdsc for this... You can use any library/os specific timing functions. Timing accuracy doesn't even really matter because you can just do more iterations.

Since it's outside the main loop, it shouldn't affect compiler optimizations.

Re:Getting 4 bytes or a full cache line: same speed or not? by justrobert on Wednesday August 01, 2018 @02:24PM (#17665382)
I'd say if you're interested in performance to this level, it is useful to know both at&t inline asm syntax on top of the simpler microsoft inline asm syntax.