Disable SSE in libstdc++
Paolo Carlini
paolo.carlini@oracle.com
Tue Oct 9 23:26:00 GMT 2012
On 10/10/2012 01:12 AM, Akanksha Jain wrote:
> Hi,
>
> I would like to disable all SSE3/4 versions of functions in libstdc++.
> I am doing some experiments with a micro-architectural simulator which
> does not have support for SSE3 and 4. In order for my simulator to
> execute the program, the executable should be devoid of any SSE3/4
> instructions. My understanding is that the functions are chosen in
> the library based on the CPUID. Is there a way I can disable SSE3/4 or
> pass a non-native CPUID without recompiling the library? If I have to
> recompile libstdc++, what configure options would make non-SSE
> variants of functions?
As far as I know the only use of cpuid is very, very recent, a single
use in random.cc. I would just hack a little bit the file, if it's such
a big issue.
Paolo.
More information about the Libstdc++
mailing list