Hi, Daniel ! > Generally, GCC does this. See the -foptimize-sibling-calls option > (enabled also, I think, by -O2). However, it doesn't seem to have any > effect on mspgcc...
You are absolutely right, It seems that msp430-gcc does not know about those options :). This optimization would be aspecially useful if using multitasking OS, since usually you do not have a plenty of stack. Let's wait for Dmitry answer... Thank, Oleg. >