This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Disable SSE in libstdc++


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]