could you please be more specific? Are they eliminated during code generatin phase? Have you tried to make one of them as input?
Only whole asm operator can be deleted by gcc. So, try to recombine params. ~d On Fri, 13 Sep 2002 00:54:37 +0800 Steve Underwood <[email protected]> wrote: > Hi, > > I have a question about inline assembly code. If I do something like > > register int x; > register int y; > > x = y = 0; > > __asm__ __volatile__ ( > ...manipulate x, y and other stuff for a while.... > : "+r"(x), "+r"(y) > ); > > to set up two variables for manipulation within the assembly code things > go wrong. x and y get coalesced during optimisation and are not treated > as separate working values. This is exactly what one would expect from > the documentation. What I can't figure out from the docs is how I am > supposed to achieve my goal, and be able to handle working variables > reliably within the assembly language block.Can anyone help? > > Regards, > Steve > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > /******************************************************************** ("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ `6_ 6 ) `-. ( ).`-.__.`) Enterprise Information Sys (_Y_.)' ._ ) `._ `. ``-..-' Nevsky prospekt, 20 / 44 _..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia (il),-'' (li),' ((!.-' +7 (812) 3468202, 5585314 ********************************************************************/
