If my users create .py scripts with for- or while-loops, I have to be able to RTOS.yield() to other RTOS tasks after a certain amount of time.
If I configure uPython to only use bytecode, this is trivial: I modify the macro
inside vm.c to check for elapsed time and call RTOS.yield().
Code: Select all
However, if native/viper code is generated, there's no way for me to insert a custom piece of code at the end of the for-loop, correct?