There are lots of C++ programs that auto-detect your CPU type and add assembly optimizations accordingly. FFMPEG and x264 are full of such optimizations.
It depends on how the code is structured and how the optimizations are implemented. There are other projects that require a different DLL per CPU type -- which is the case when you use compiler optimizations.
|