soltras wrote:
Could You please explain what the framee pointer is for?
Frame pointer points to a base of memory where local variables are stored. Usually this is same then stack pointer while entering function. On MSP430 R4 is used as frame pointer. Also, on MSP430, frame pointer could be omitted - compiler will use stack pointer(R1) instead, but debugger might not show correct values for your locals while debugging. This frame pointer bug is unnoticed with optimizations turned on, as most locals are stored in registers and frame pointer is omitted (R4 becomes general purpose register). Also, can someone commit fixes for last two bugs I have reported (with fixes) to CVS? Indrek -- Indrek Rebane | Borthwick-Pignon Electronics Engineer | Tartu Science Park Phone: (+372) 7 302 641 | Riia 185, 51014 Tartu Fax: (+372) 7 383 041 | Estonia [email protected] | www.bps.co.ee
