On 22/04/2022 14:26, Mike Jagdis via Sdcc-user wrote:
I suspect that what it means is that only S and AF parts covered by RM0016 implement roll-over limits and you should not assume other variants are the same. I guess there's some regulation in the automotive world that says stack space must be clearly defined and {over,under}flow must never be allowed to trash non-stack data. I can't see any other reason for going to the expense unless not doing it would lose a hefty chunk of market.
I just had a quick look at the reference manuals for the STM8L series (RM0013 & RM0031), and those unhelpfully don't have equivalent content in their 'Memory and register map' sections. No talk of stack pointer handling; it just says "see product datasheets".
A couple of STM8L datasheets I then looked at (STM8L050 & STM8L151) *do* show a limited stack of 512 bytes on their memory map, so one could assume that they behave the same as the STM8S/AF. But, without parts in hand to actually test, who really knows... <shrug>
Regards, Basil Hussain _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user