News for hackers. Stuff that matters.
Re:How many registers does an x86-64 CPU have? (2020) by Joker_vD on Saturday February 14, 2026 @10:02PM (#47020658)
> There's no reason `sizeof int` has to equal `sizeof intptr_t`

Well, there is no reason `sizeof int` should be 4 on 64-bit platforms except for the historical baggage (which was so heavy for Windows, they couldn't move even long to be 64 bits). But having an int to be a wider type than intptr_t probably wouldn't hurt things (as in, most software would work as-is after simple recompilation).

There are no comments on this comment yet.