Reduce stack usage to help usage on embedded systems#117
Reduce stack usage to help usage on embedded systems#117chmorgan wants to merge 2 commits intolieff:masterfrom
Conversation
…ack consumption by ~16k mp3dec_s can be placed in the memory type of choosing by the caller but in particular this helps embedded use where stacks are often fixed sized.
…k consumption by ~900 bytes
|
This is useful to me. It would be nice if it would be merged. |
|
@vmsh0 feel free to use my fork and let me know how it goes. I'm using it here on stm32 targets. |
|
I swapped this in in place of the mainline version, was able to reduce the stack size of my decoder task by more than 20k. Big success! Thanks. |
|
While I would also like to see reduced stack usage, the approach implemented here does not really work: |
The API could be extended to have an "init" method, dynamically allocating a mp3dec_t structure. This would probably benefit from #114 |
No description provided.