Search found 8 matches

by Cyrille de Brébisson
Fri Jun 29, 2018 6:39 am
Forum: Development of MicroPython
Topic: Saving and loading "state"
Replies: 7
Views: 4874

Re: Saving and loading "state"

Hello,

> I agree. Seems like you cannot do what you want.

Thanks for confirming.

Cyrille
by Cyrille de Brébisson
Thu Jun 28, 2018 10:50 am
Forum: Development of MicroPython
Topic: GC and Heap
Replies: 20
Views: 12082

Re: GC and Heap

Hello, >1. Can I assume that you're "starting in" REPL and then you will call a Python function that is implemented in C that will then call your PPL API? The starting point could be either the REPL, or a PPL program which will call the Python VM (spawning a Python VM with a text string to parse/exe...
by Cyrille de Brébisson
Thu Jun 28, 2018 9:48 am
Forum: Development of MicroPython
Topic: Saving and loading "state"
Replies: 7
Views: 4874

Re: Saving and loading "state"

Hello, But I am assuming that the same problem will exist within the heap with incompatible data formats... What I am trying to acheive is the ability to save a state file on one of my implementation of my program, transfert it to another device, and reload it there. Since my program can run both on...
by Cyrille de Brébisson
Tue Jun 26, 2018 1:12 pm
Forum: Development of MicroPython
Topic: Saving and loading "state"
Replies: 7
Views: 4874

Re: Saving and loading "state"

Hello,

How dependent is mp_state_ctx_t to the CPU architecture?
I am not too woried about endianess as little endian seems prety dead, however, I am assuming that it is NOT 32/64 bit agnostic.
Meaning that if I save the state on a 32 bit machine, I can not reload it on a 64 bit machine...

Cyrille
by Cyrille de Brébisson
Tue Jun 26, 2018 11:10 am
Forum: Development of MicroPython
Topic: GC and Heap
Replies: 20
Views: 12082

Re: GC and Heap

Hello, >If you want to switch between multiple Python executables ie at the Python-level, that would work. >But he wants to switch between Python and non-Python executables ie between OS processes. Not exactly. I only have one single process. As a mater of fact, I only have one single thread. Howeve...
by Cyrille de Brébisson
Wed Jun 06, 2018 7:07 am
Forum: Development of MicroPython
Topic: GC and Heap
Replies: 20
Views: 12082

Re: GC and Heap

Hello, Sorry, this is a LONG post! To answer such a short question. The first part of the post is a high level description of the existing system that I am trying to integrate µPython in. This (relatively large) system is pre-existing and non-negotiable. I was given the task to make µPython work in ...
by Cyrille de Brébisson
Mon Jun 04, 2018 9:06 am
Forum: Development of MicroPython
Topic: GC and Heap
Replies: 20
Views: 12082

GC and Heap

Hello, I appologize if my question is naive, but I am not sure that I am understanding things properly here. Is my understanding correct here: If I enable MICROPY_ENABLE_GC, then the system will allocate an area of RAM at startup and use this ram for storing all the data. Doing it's own malloc in th...
by Cyrille de Brébisson
Fri Jun 01, 2018 11:50 am
Forum: Development of MicroPython
Topic: Saving and loading "state"
Replies: 7
Views: 4874

Saving and loading "state"

Hello,

Is there a way to load/save the current python machine state?

I am in a system where I have an interractive evaluation loop (repl)...
But I might need to interrupt and restart said evaluation (basically save state to stream, load state from strem).
How would I do that?

Thanks,
Cyrille