Re:Air traffic system failure caused by computer memory shor...
by tomp on Monday May 12, 2014 @04:33AM
(#7731677)
[ Parent
| on HN ]
Re:Air traffic system failure caused by computer memory shor...
by ghshephard on Monday May 12, 2014 @05:05AM
(#7731743)
The flight was at 60,000' - You would have to look far and wide for a platform in which "short int" wasn't two bytes.
For example, Here is what the compiler for the 8-bit ATMEL Atmega 328 in an arduino does (on a platform with 32KB for program text and 2KB for RAM.)
sizeof(bool) == 1
sizeof(short) == 2
sizeof(int) == 2
sizeof(long) == 4
sizeof(long long) == 8
sizeof(void *) == 2