News for hackers. Stuff that matters.
Re:A Special Kind of Hell: intmax_t in C and C++ by toast0 on Saturday December 05, 2020 @03:38PM (#25318090)
I would expect it will work a lot better if you have one libc library per ABI, and link in the matching one to the executable (and the same for all your other libraries).

The only thing that may need to deal with multiple supported ABIs simultaneously is the kernel. But maybe kernels are using more explicit types?

Personally, I don't like to write code with int/long/etc. I want to know how many bits are in the thing, because it usually doesn't make sense for the program to sometimes have one number of bits, and sometimes another (pointer/memory offsets excluded).

Re:A Special Kind of Hell: intmax_t in C and C++ by loeg on Saturday December 05, 2020 @04:46PM (#25318721)
> The only thing that may need to deal with multiple supported ABIs simultaneously is the kernel. But maybe kernels are using more explicit types?

Right. Kernel ABIs use explicit-width types, and if an ABI change is needed, a new syscall is added. The old one continues to exist with the old ABI indefinitely.