Does your code have to recompile everytime you wake up from (deep)sleep
Posted: Sun Jan 10, 2021 10:25 am
Hi,
I'm trying to get confirmation on something.
The Docs say that at start-up your python source code on the Flash memory gets compiled to byte code, this byte code gets stored in the RAM and then then the Virtual Machine interprets your byte code (which means executes your code).
Now my question: when you have a program that goes repeatedly to (deep)sleep, does your code get recompiled everytime you wake up?
I would think yes, because the byte code is stored on the RAM memory and this won't be kept in deepsleep. But I'm not certain about this.
Thanks in advance!
I'm trying to get confirmation on something.
The Docs say that at start-up your python source code on the Flash memory gets compiled to byte code, this byte code gets stored in the RAM and then then the Virtual Machine interprets your byte code (which means executes your code).
Now my question: when you have a program that goes repeatedly to (deep)sleep, does your code get recompiled everytime you wake up?
I would think yes, because the byte code is stored on the RAM memory and this won't be kept in deepsleep. But I'm not certain about this.
Thanks in advance!