News for hackers. Stuff that matters.
Re:Bringing Clang to Windows by Someone on Friday May 01, 2015 @06:35PM (#9474951)
"The memory layout of, for example, std::string isn't decided by the compiler - it's decided by the library/header files."

Not quite true. Different compilers can decide to do different alignment/padding. It should be fairly simple to make clang and MSVC avoid that scenario, though.

Also, they must have taken care to use the same ABI and C++ name mangling rules in both compilers. I would guess Microsoft's version of clang follows MSVC here, so that one can link clang code to existing third party libraries.

There are no comments on this comment yet.