Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

Linking objects for different processor target

$
0
0

Hi

I wanted to know if there is (or could be an idea) a way to tell the Intel Linker to link file in order of CPU capabilities.

For instance if i have test_avx.cpp compiled with /QxAVX and test_sse41.cpp compuled with /QxSSE4.1 and I implement the dispatching manually, I need that generated code from classes shared across the object (for which i don't need any vectorial optimization, like std::string) to be generated with the most generic code (which would be /QxSSE4.1 in this example).

Currently I achieve that by ordering manually the files in my Visual Studio project file (which by chance, influence the order of the obj in the linking command line) and that work.

Best regards


Viewing all articles
Browse latest Browse all 1616

Trending Articles