Question
Linker scripts always produce a misaligned stack pointer
Posted on June 14, 2015 at 11:51
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.htmlStates a multiple of 8 bytes. yet it's always:<mem base> + <mem size> -1this seems to be from the early days of 8bit, but even then it was wrong as a push isSP--;*SP = <reg>;and pop<reg> = *SP;SP++;So why is it misaligned? #stack-pointer #alignment #st-linker