Pettenò: Debunking x32 myths
Posted Jun 27, 2012 13:49 UTC (Wed) by
nix (subscriber, #2304)
In reply to:
Pettenò: Debunking x32 myths by cmccabe
Parent article:
Pettenò: Debunking x32 myths
char is "the smallest addressable unit" (in practice always 1 byte)
It's not a matter of 'in practice'. char is, by definition, one byte long. In closely adjacent paragraphs of every C Standard ever published,
sizeof() is defined as yielding 'the size (in bytes) of its operand', and then
sizeof (char) is defined as returning 1. If you change
sizeof (char), you change the definition of a byte on that platform's C ABI.
(
Log in to post comments)