Firmware · C for embedded
A lot happens between the moment power arrives and the first line of main(), and some of it decides what your variables hold.