News for hackers. Stuff that matters.
Re:C++20 Modules with GCC11 by not2b on Wednesday August 18, 2021 @09:07PM (#28229208)
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.

Re:C++20 Modules with GCC11 by gumby on Wednesday August 18, 2021 @09:52PM (#28229461)
> 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.