This is the best resource I could find:
http://hinch.me.uk/html/reference/constrained.html
Found link in this topic:
http://forum.micropython.org/viewtopic.php?f=3&t=2396
Pre-Compiled files using more memory?
-
- Posts: 4
- Joined: Fri Mar 10, 2017 3:17 pm
Re: Pre-Compiled files using more memory?
Hi,
I realize this thread is older, but it's related to my question so I shall add it here.
Using mpy-cross yields .mpy files that are larger than their respective .py files!
My main.py is so long it can only be imported by commenting out some lines (that are not even called by the code unless specific conditions happen). So I'm guessing it's just too large for the compiler. I tried using mpy-cross, but I ended up with 10KB instead of 9KB!
Am I missing the point? Am I doing something wrong?
Placing my main.py file in the mpy-cross folder and running
./mpy-cross main.py
yields the above result. Any parameters I have to set?
Renaming main.mpy to something.mpy and importing it from the REPL gives me:
ValueError: invalid .mpy file
Interestingly, out of 8 .py files I tried, exactly one of them compiled into a useable .mpy file.
Platform: ESP8266
MicroPython 1.8.7
I realize this thread is older, but it's related to my question so I shall add it here.
Using mpy-cross yields .mpy files that are larger than their respective .py files!
My main.py is so long it can only be imported by commenting out some lines (that are not even called by the code unless specific conditions happen). So I'm guessing it's just too large for the compiler. I tried using mpy-cross, but I ended up with 10KB instead of 9KB!
Am I missing the point? Am I doing something wrong?
Placing my main.py file in the mpy-cross folder and running
./mpy-cross main.py
yields the above result. Any parameters I have to set?
Renaming main.mpy to something.mpy and importing it from the REPL gives me:
ValueError: invalid .mpy file
Interestingly, out of 8 .py files I tried, exactly one of them compiled into a useable .mpy file.
Platform: ESP8266
MicroPython 1.8.7