Re:The two types of C programmers (a provocative thesis)
by zabzonk on Sunday April 23, 2023 @07:03PM
(#35681605)
we don't have standard ABIs for either C or C++; we have conventions.
[ Parent
| on HN ]
Re:The two types of C programmers (a provocative thesis)
by msla on Sunday April 23, 2023 @07:16PM
(#35681715)
Counterpoint:
https://wiki.osdev.org/System_V_ABI
The System V ABI is closer to being a standard than some official standards are.
C++ gets odd with name mangling, but the platform's C ABI is typically the tune every other language must dance to for its FFI.
Re:The two types of C programmers (a provocative thesis)
by kps on Sunday April 23, 2023 @08:07PM
(#35682085)
> The System V ABI is closer to being a standard than some official standards are.
That brings back some unpleasant memories. What happens when a popular compiler decides that whatever they choose is the ABI, and the published spec be damned? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38496
Re:The two types of C programmers (a provocative thesis)
by pjmlp on Monday April 24, 2023 @02:52AM
(#35684414)
Counterpoint,
https://en.wikipedia.org/wiki/IBM_i
https://os.mbed.com/docs/mbed-os/v6.16/apis/platform.html
Not every OS is written in C, thus the platform ABI isn't always C.