That is really a philosophical question to me. Stacks can be
implemented in HW on the MCU. Stacking can also be entirely done in
SRAM. That depends on where you're observing memory usage. Are you in
the eLua world writing Lua code on the MCU OR are you in the C world
that implements the (modified) core of Lua for MCUs and all the
marshalling details for eLua?
Thank you for your answer. We're trying to Port eLua to a board, we mapped stack entirely in SRAM. But stack has a strange behavior, we run a script written in Lua that's creates functions and call them and we control stack usage in different parts of the script but stack usage is always the same..