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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/08/04 14:39
Read: times


 
#66248 - Not-so-mysterious errors
Responding to: ???'s previous message
Sriharsha Vedurmudi said:
I feel, the Compiler writers at keil are put to many sleepless nights, and they rarely write a line or two with sleep chasing them


Like Bartosz said, this is almost certainly due to misuse of printf, rather than any sleep-deprivation at Keil.
See the section "Problems Using the printf Routines" at the back of the C51 Manual.

As well as mis-use of the format-specifiers (as Bartosz said), mis-use of pointers is an excellent way to get really weird behaviour in any 'C' program.
This is especially so in Keil C51, as an uninitialised Generic pointer can very easily trash the Stack:
http://www.8052.com/forum/read.phtml?id=62905

List of 17 messages in thread
TopicAuthorDate
An Error in Kiel            01/01/70 00:00      
   RE: An Error in Kiel            01/01/70 00:00      
   Keil            01/01/70 00:00      
   RE: An Error in Kiel            01/01/70 00:00      
      RE: An Error in Kiel            01/01/70 00:00      
         Some mysterious errors            01/01/70 00:00      
            RE: Some mysterious errors            01/01/70 00:00      
               RE: Some mysterious errors            01/01/70 00:00      
                  RE: addendum to the above            01/01/70 00:00      
            Not-so-mysterious errors            01/01/70 00:00      
               RE: Not-so-mysterious errors            01/01/70 00:00      
                  RE: Not-so-mysterious errors            01/01/70 00:00      
                     RE: Not-so-mysterious errors            01/01/70 00:00      
                        RE: Not-so-mysterious errors            01/01/70 00:00      
                           RE:printf            01/01/70 00:00      
   RE: An Error in Kiel            01/01/70 00:00      
      LX51: How will that help?            01/01/70 00:00      

Back to Subject List