Hello,
8 bit PIC's use a hardware stack for CALL's and Interrupts.
I am painfully aware of that.
As far as I know, the Stack Usage summary in LST file reports only the Hardware Stack usage.
The functions which compiler inlines or use GOTOs as optimization to save the hardware stack are marked as such in TRE file.
The report of the compiler might reflect the usage of
"automatic variables", which are allocated on an emulated
software stack.
I don't think this emulated stack or variable OVERLAYing as called by other compilers, for auto/param/return variables, have anything to do here.
And lastly, no matter what compiler does, INTERRUPT has to use at least 1 level of HARDWARE stack, isnt it?
Thanks again,
sam_des