Re:Berry is a ultra-lightweight dynamically typed embedded s...
by mikepurvis on Saturday October 07, 2023 @08:35PM
(#37806817)
Any serious build setup for an MCU firmware is going to have steps like this in, generating code and saving blobs of this and that.
Though I guess part of the pitch for micropython is being able to iterate without a flash step every time. Possibly addressed by having your dev boards fitted with a version of the MCU with enough RAM to run it all that way.
Re:Berry is a ultra-lightweight dynamically typed embedded s...
by matt_trentini on Sunday October 08, 2023 @05:44AM
(#37809132)
Just to be clear, not just data but bytecode will also be executed from flash too.
If your module contains stored data in the form of an immutable object, like a string or bytes(), it will be read straight out of flash without copying to RAM first.
This needs you to run some code on a desktop computer to perform the freezing though.
https://docs.micropython.org/en/latest/reference/constrained...