Picomite/PicoMiteVGA V5.07.05 release candidates


Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4343
Posted: 01:23pm 02 Oct 2022      

Hi Volhout,

  Volhout said  Tom,

Do you think it is possible to re-compile the code with a memory map that allows for a larger C stack ? Or is this something the compiler decides on his own ?


I'm pretty sure that is possible, I recall reading that the default can be overridden using a compiler flag for the standard Pico SDK tool-chain. However the additional stack has to come from somewhere and Peter has indicated it would be from the MMBasic heap, that is the memory allocated to MMBasic string and array variables. Note that I would not be in favour of multiple public forks of the Picomite firmware, that way lies madness, c.f. the ESP-01 (at least to my understanding.)

  Volhout said  What is the difference between CMM2 C stack and pico C stack in size ?


When I have the answers to questions like that at my finger-tips I will remove the "NOT A GURU" from my avatar . You'll need to check the relevant SDK documentation, I wouldn't be suprised if the CMM2 has a stack at least 4x the size of the Picomite; it has so much more RAM to play with.

Best wishes,

Tom
Edited 2022-10-02 23:56 by thwill