Re:The two types of C programmers (a provocative thesis)
by jenadine on Monday April 24, 2023 @04:30PM
(#35692778)
Of course the C ABI places constraints on the memory layout of the types. For example, alignment. Also in what register "small" types are passed when passing them to functions. It actually depends if the struct has float members or not.
C itself is quite complex already.
C++ adds more features.
But for example, the Rust ABI uses the C++ ABI, because C is too simple and doesn't support unwinding (for panics) or 128bit integers
This is why it's pretty standard to just have a C FFI and provide a C wrapper for C++ libraries to use them with other languages.