MMX (or other) enabled runtime libraries.
-
My code is performing a lot of text parsing functions and I am looking at ways to optimize the code. Does any version of the microsoft run time libraries use MMX extensions if they are available? I guess the same question applies to the .NET framework as well.
-
My code is performing a lot of text parsing functions and I am looking at ways to optimize the code. Does any version of the microsoft run time libraries use MMX extensions if they are available? I guess the same question applies to the .NET framework as well.
A lot of MMX functions, 128 bit math and the like are intrinsics in the Visual Studio compilers, they are enabled by linking with the MSVCRT runtime but you don't need it to use them. They're also not especially well documented, search MSDN for intrinsics and keep digging. :)
Nothing is exactly what it seems but everything with seems can be unpicked.
-
A lot of MMX functions, 128 bit math and the like are intrinsics in the Visual Studio compilers, they are enabled by linking with the MSVCRT runtime but you don't need it to use them. They're also not especially well documented, search MSDN for intrinsics and keep digging. :)
Nothing is exactly what it seems but everything with seems can be unpicked.
I should have phrased my question better - what I meant was are functions such as strstr optimized for MMX? Having searched a bit more Intel provide a library Intel Performance Primitives which may offer some hope.
modified on Tuesday, March 4, 2008 5:43 AM
-
I should have phrased my question better - what I meant was are functions such as strstr optimized for MMX? Having searched a bit more Intel provide a library Intel Performance Primitives which may offer some hope.
modified on Tuesday, March 4, 2008 5:43 AM
Yes, if you want optimised standard functions that use the newer instruction, Intel libraries built with Intel's optimizing compiler backend is definitely the way to go. GNU glibc has some of the lower level i386 support functions e.g. memset written in hand optimised, GAS format, assembler but the Intel tools will optimise your whole code, post compilation.
Nothing is exactly what it seems but everything with seems can be unpicked.