3 ms·
There's been a strong effort to have binary compatibility between compilers. The initial effort was funded by Intel when they launched Itanium and the resultin
by not2b 5y ago
There's been a strong effort to have binary compatibility between compilers. The initial effort was funded by Intel when they launched Itanium and the resulting C++ ABI is used for other processor targets as well. So gcc, clang, and Intel's proprietary compiler are binary compatible modulo bugs.
But modules are very new and I doubt if enough corner cases are nailed down yet.
- gumby 5y ago> So gcc, clang, and Intel's proprietary compiler are binary compatible modulo bugs. For generated code, definitely. But for example their standard libraries are different so you still can't, say, compile something in gcc that uses std::string and expect to be able to link it to something compiled with clang that uses std::string unless you are careful to use the headers (and .a files) of the same libc++ or libstdc++ I consider this a feature, not a bug -- diversity in implementation is a plus.