Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5463

MicroPython • Re: Mix Python & C without compiling into micropython?

$
0
0
Well, dang. I guess I'll just stay entirely in the C world, then for ease of development cycles.
I am not convinced "compile the C Module, upload the '.mpy', reboot the Pico" is any easier than "compile MicroPython, upload the '.uf2' file".

It's quicker though because building MicroPython has some pre-build steps it always carries out which are quite slow and it's a larger upload.

The big advantage of using C is code can often be built as Run from RAM. While it's unlikely anyone will wear the Flash out through excessive uploads it's nice to know that Flash isn't being written when it doesn't need to be. Run from RAM uploads are much faster as well.

However most builds for Pico W will not fit into RAM, so that's a non-starter. It would be nice if the CYW43 firmware and networking code could be pre-loaded to Flash or a file system so code using those were small enough to meet Run from RAM requirements but there's currently no way to have that.

Statistics: Posted by hippy — Sat Jul 27, 2024 12:39 pm



Viewing all articles
Browse latest Browse all 5463

Trending Articles