News for hackers. Stuff that matters.
Re:C array types are weird by pjmlp on Wednesday May 27, 2026 @03:11AM (#48290770)
C doesn't have a stable ABI, most folks mistake the ABI from OS written in C, with an imaginary C ABI.
Re:C array types are weird by flohofwoe on Wednesday May 27, 2026 @04:06AM (#48291157)
OS ABIs are usually stable though ;)

Finally someone getting it right though. C doesn't have any ABI per se, compilers need to implement whatever ABI a specific operating system defines (otherwise the language would be pretty useless since it couldn't call into operating system functions).

Re:C array types are weird by throwaway27448 on Wednesday May 27, 2026 @03:21AM (#48290834)
Even then, arrays can be encoded and enforced on each side. It would be simpler to enforce this via the abi—but the abi itself does not open issues with array description and access
Re:C array types are weird by cozzyd on Wednesday May 27, 2026 @12:39PM (#48296795)
Sure that's technically correct, but in practice it means I get a stable ABI :).