Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/04/03 21:00
Read: times


 
#38273 - RE: clear internal ram and registers in C
Responding to: ???'s previous message
In the Keil C compiler the internal RAM is cleared by the C startup code. And by default this also clears the registers since they lie at the base of the internal RAM.

Note that it is possible to bypass this ZEROing of the internal RAM in the Keil C startup but then the normal expectation in C that has uninitialized static variables set to zero is not honored and you need to be fully aware of this in your program. It is poor programming practice in C to assume that uninitialized static variables are zero at startup anyway.

Michael Karas


List of 6 messages in thread
TopicAuthorDate
clear internal ram and registers in C            01/01/70 00:00      
   Why do this in C?            01/01/70 00:00      
      RE: Why do this in C?            01/01/70 00:00      
   RE: clear internal ram and registers in C            01/01/70 00:00      
      RE: clear internal ram and registers in C            01/01/70 00:00      
RE: clear internal ram and registers in C            01/01/70 00:00      

Back to Subject List