Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Embedded > 56F800 compiler...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 361 of 414
Post > Topic >>

56F800 compiler wierdness

by "msolem" <msolem@[EMAIL PROTECTED] > Nov 15, 2005 at 10:50 AM

It appears that code generated from the compiler, uses two different
addresses to acces the same variable.

I have this variable defined at the top of the file:
static int m_timer_fired222;

And here is s snippet of code taken from the debugger in mixed mode:
        while(m_timer_fired222 == 0)
            ;
P:00000129: BE38      tstw     X:0x0038
P:0000012A: A37E      beq      main+0x2f (0x129)       ; 0x000094
        m_timer_fired222 = 0;
P:0000012B: 86F400430000  movei    #0,X:0x0043


When it reads the variable it looks like it's using address 0x38, but
writing seems to happen at 0x43.  Am I missing something here?

Mike
 




 2 Posts in Topic:
56F800 compiler wierdness
"msolem" <ms  2005-11-15 10:50:12 
Re: 56F800 compiler wierdness
"msolem" <ms  2005-11-15 14:40:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 14:19:58 CDT 2008.