2 ms·
> standard ABI, which C provides but C++ does not Neither the C Language Standard nor the C++ Language Standard specify an ABI.
by zabzonk 7y ago
> standard ABI, which C provides but C++ does not
Neither the C Language Standard nor the C++ Language Standard specify an ABI.
- DoofusOfDeath 7y ago> Neither the C Language Standard nor the C++ Language Standard specify an ABI. Perhaps we should distinguish between a Langage-Standard ABI vs. a per-platform de facto ABI. I think the GP's comment holds for the latter definition.
- zabzonk 7y agoI don't believe that either the GCC or MSVC C ABIs have been the same (per platform) over the years.
- temac 7y agoFor C: both platform have been EXTREMELY compatible over the years. They probably both treat breakage as bug. This is a must given the fundamental APIs are defined in term of C headers, and must remain compatible. Even for C++: gcc has been mostly compatible, but not unreasonably so. MSVC was traditionally not at all, but has recently been for 2 or 3 major versions in a row. I think MSVC will eventually break it again though, but at least they break it way less often than before (and breaking can also have advantages).