Comment

Comment by mananaysiempre

All of these sound weird to me—most non-stupid (hello 802.2) protocols and hardware are going to have natural-aligned structure fields, so basically any mainstream (8-bit-byte, two’s complement, etc.) ABI is going to lay them out the same way, packed or not.

As for RV64 and Arm64, the layout rules for same-size scalar types in their common ABIs are outright identical aren’t they?

We’re (most of us) a long way away from the time where each DOS compiler had its own opinions on whether long double should be 8-, 16-, 32-, or 64-bit aligned and 80 or 128 bits long.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton