AnsweredAssumed Answered

Linker scripts always produce a misaligned stack pointer

Question asked by szlamp.daniel on Jun 14, 2015
Latest reply on Jun 14, 2015 by Clive One
All of the ST tools seem to generate a misaligned stack pointer.
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/14269.html
States a multiple of 8 bytes. yet it's always:
<mem base> + <mem size> -1
this seems to be from the early days of 8bit, but even then it was wrong as a push is
SP--;
*SP = <reg>;
and pop
<reg> = *SP;
SP++;
So why is it misaligned?

Outcomes