YB, Re: If the app is executed under 32-bit Windows, but really needs to perform some heavy calculations, it can turn off interrupts, switch to the 64-bit mode, calculate something using all new registers for, say, 1 ms, then switch back into 32-bit mode and enable interrupts.
1. Turning off interrupts is very dangerous. First, there are several that are non-maskable, and need to be run for proper CPU operation. 1ms is far too long to go without interrupts. RTOS operation is supposed to handle interrupt requests within 50us, though Windows usually takes 100-300us. Even so, 1ms is much too long. Lastly, some interrupts control the timing of the system, which allows for proper scheduling within the OS. You cannot turn these off and still allow the OS to function correctly.
2. You cannot switch modes within a processor without specific instructions. How is the processor supposed to know you want to run in 64-bit mode? Those instructions have special op-codes, but the instructions being read for a 32-bit app do not have those opcodes. So how would the processor know? It only does what it's told, that's how electronics work. Sorry, but you can't enable magic operation, even with clever programming.