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

2
Designing Design Systems
TkDodo Dominik Dorfmeister 2 votes
4
Introducing RSC Explorer
Dan Abramov 1 votes
6
Fragments Dec 11
Martin Fowler 1 votes
7
Adding Type Hints to my Blog
Daniel Feldroy 1 votes
8
Refactoring English: Month 12
Michael Lynch 1 votes
10