> > 1. Are you sure that registers do not have to be pushed onto stack? > > Yes. I used SOS with 'naked' task functions and it worked fine (more than a > year of use) until I added to one project task which allocates some local > variables > on the stack and so FrameSize!=0. Adding "sub #FrameSize,r1" cured this > problem, > but 'task' attribute much more elegant solution. > Task functions never return in usual way (they behave like the main() do), > so why > do we need to waste the stack ?
Ok, I got it... > > > 2. Could you please make diff with '-c3p' flags (this looks more > > informative)? > > The attached (to the previous post) patch was made with those flags. > (Maybe MinGW works a bit different then UNIX?). If you want tell me where > to send > the whole msp430.c file (I do not think list is a good place for such posts > ;). > May be mingw a bit tricky... anyway I patched it. I'll commit changes shortly. > > Actually I'm going to switch to 3.4 and going to commit it to 3.4 tree. > > Does 3.4 really better then 3.2.1 ? The main advantage of _msp430_ port there is new init structure (which does not cancel previous one) + some include's macros have been reimplemented in gcc (like __get_frame_address() instead of GET_FRAME_ADDR(...), including but not limited to:) #define _BIS_SR_IRQ(x) __bis_sr_irq(x) #define _BIC_SR_IRQ(x) __bic_sr_irq(x) Plus there are no redudant flags. 73! ~d > > All the best ! > Oleg > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users -- /***************************************************************** ("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ `6_ 6 ) `-. ( ).`-.__.`) State Polytechnical Univ. (_Y_.)' ._ ) `._ `. ``-..-' Radio-Physics Departament _..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia (il),-'' (li),' ((!.-' +7 (812) 5403923, 5585314 *****************************************************************/
