Disable SSE while using STL?
Posted: Wed Jul 27, 2016 3:48 pm
I've currently trying to write a kernel in C++. I've written my own libc and compiled libstdc++ on top of it. I've tested the library and it is working fine on bare metal. However, when I turned on
then g++ refuses to compile the code giving the message
Is there a way to use STL while turning off MMX & SSE?
Code: Select all
-mno-mmx -mno-sse -mno-sse2
Code: Select all
include/c++/6.1.0/bits/basic_string.h:5438:46: error: SSE register return with SSE disabled
stof(const string& __str, size_t* __idx = 0)