Carl, Try to declare it outside the function (as a global).
At 19:43 19-2-2010 -0800, you wrote: >I tried declaring as volatile and it is at the exact same address. > >Carl > >On Sat, 20 Feb 2010 01:35:03 +0000 > "Wayne Uroda" <[email protected]> wrote: >>try declaring i as volatile, or the compiler will probably get rid of it since it has no effect or side-effect. >>Sent via BlackBerry from Vodafone >> >>-----Original Message----- >>From: Carl <[email protected]> >>Date: Fri, 19 Feb 2010 18:29:03 >>To: <[email protected]> >>Subject: [Mspgcc-users] stack variable in flash? >> >>I'm sure that I'm missing some basic here but I'm not sure what. The >>first variable on the stack is in an unexpected location. I would expect >>it to be located somewhere on the stack in RAM (0x30ff-0x1100) but it is >>located in flash memory and it does not get set or incremented. >> >> >>#include <io.h> >> >>int main() >>{ >> int i=0; >> while(1) >> i++; >>} >> > >--------------------------------------------------------------------------- --- >Download Intel® Parallel Studio Eval >Try the new software tools for yourself. Speed compiling, find bugs >proactively, and fine-tune applications for parallel performance. >See why Intel Parallel Studio got high marks during beta. >http://p.sf.net/sfu/intel-sw-dev >_______________________________________________ >Mspgcc-users mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/mspgcc-users > >
