Dan Luu 10/19/2014

Assembly v. intrinsics

Read Original

This article examines the claim that compiler intrinsics are a viable replacement for handwritten assembly in high-performance code. The author, after testing intrinsics again recently, concludes they are still not worth the effort due to unreliable compiler output. This unreliability forces developers to manually verify and tweak results across different platforms and compilers, which is more labor-intensive than just writing the assembly directly. An example using the popcnt instruction is provided to illustrate how intrinsics can lead to incorrect performance conclusions.

Assembly v. intrinsics

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet