5 ms·
Yeah fair. But I think that any gc language for microcontrollers should have a couple features: 1) A compiler flag or similar optional static check that throws
by akelly 4y ago
Yeah fair. But I think that any gc language for microcontrollers should have a couple features:
1) A compiler flag or similar optional static check that throws a warning if you have dynamic memory allocation. In scripting languages it can be easy to do accidentally
2) A way to block the gc from happening in a time critical section of code, like how you can disable interrupts
3) Some guarantee on the maximum time gc will take
- matt_trentini 4y agoMicroPython provides a way to stop the GC (and an exception will be raised if memory is attempted to be allocated). This provides us with most of the control we require...