Hi,
I have a start function link to the reset vector table:
void __interrupt start(void)
{
__asm("\t MOV.W\t #__STACK_END,SP");
main(0);
exit(0);
}
but the compiler generate saving register before initialization of stack pointer:
PUSH.W r15 ; [] => unexpected line
PUSH.W r14 ; [] => unexpected line
PUSH.W r13 ; [] => unexpected line
PUSH.W r12 ; [] => unexpected line
PUSH.W r11 ; [] => unexpected line
MOV.W #__STACK_END,SP
MOV.W #0,r12 ; [] |74|
CALL #main ; [] |74|
MOV.W #0,r12 ; [] |75|
CALL #exit ; [] |75|
POP r11 ; [] => unexpected line
POP r12 ; [] => unexpected line
POP r13 ; [] => unexpected line
POP r14 ; [] => unexpected line
POP r15 ; [] => unexpected line
RETI ; []
Thank you for your help