Elektrine lite

← Feed

@gsuberland@chaos.social

Post #3213156

2023-11-03 22:52 UTC

@ShadSterling@mastodon.social @mos_8502@oldbytes.space @thamesynne@dragon.style @thephd@pony.social that's sort of my point. cdecl is the default convention for C on x86-32 only, and even that isn't well-specified. the actual behaviour for Linux binaries is simply de-facto set to whatever GCC implements, so specifics of stack alignment requirements vary depending on the compiler version. if you're on any other arch, the default convention is different - it's either compiler-specific, or architecture-specifed. so C really isn't special here.

Replies (1)

  • @gsuberland@chaos.social @mos_8502@oldbytes.space @thamesynne@dragon.style @thephd@pony.social it’s not special in that in principal any language could be the reference used for such integrations, but it is special in that in practice it’s the one that is used. That’s why Scipy and Numpy, every Ruby database gem, and most libraries similarly incorporated into the libraries of many languages, are written in C. Sure, it’s only an accident of history, but it’ll be a long time before it changes

    Open ##3213157