While working on a remote weather station for NOAA, we found that the Interdata FORTRAN compiler we were writing the controller software with did an interesting thing at runtime.
If you declared a 4-byte integer, it would reserve two bytes at compile time, then use the following two bytes (to get the full four) for the rest of it at runtime.
The solution was padding the declaration with a wasted variable that got sacrificed to the bug gos when you ran the program.
While working on a remote weather station for NOAA, we found that the Interdata FORTRAN compiler we were writing the controller software with did an interesting thing at runtime. If you declared a 4-byte integer, it would reserve two bytes at compile time, then use the following two bytes (to get the full four) for the rest of it at runtime. The solution was padding the declaration with a wasted variable that got sacrificed to the bug gos when you ran the program.