Hello guys,
I was trying to strip down the micropython to run on LA104 (based on STM32F103) and by little tweaking I was able to reduce size to 58700 bytes without startup code. And this nicely meets the requirement for 64KB build for blue pill.
There are some limitations though: I had to remove repl interface, floating point and compilation support. Lot of size can be saved by replacing the assert function to remove the string description of asserted condition from binary.
https://github.com/gabonator/LA104/tree ... icropython
What it does is just executing precompiled python binaries from local storage.
Later I realized that the cpu I was using (STM32F103VCT6) has 256KB flash, so I switched to circuitpython and the binary size including REPL and floating point and compilation support is twice as big - 128000 bytes:
https://github.com/gabonator/LA104/tree ... cuitpython
Gabriel