by int_19h · 8y ago · 0 comments
CHAR_BIT == 32
sizeof(char) == 1
sizeof(int) == 1
sizeof(short) == 1
sizeof(float) == 1
sizeof(double) == 2
I suppose the alternative would be to use an addressing scheme encoding bit offset in the pointer, like some of the other machines in this story. But that's also much more expensive, and this is a DSP architecture, so they went with something more straightforward. Curiously, this set-up is still fully accommodated by ISO C standard.This allegedly means that the standard doesn't require fgetc() (which returns a char converted to an int on success, or EOF on failure) to have sensible behavior on such platforms [1].