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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/09/07 14:21
Modified:
  01/09/07 14:28

Read: times


 
#130500 - from an old hand to a newbie
Responding to: ???'s previous message
In C, I consider myself an 'old hand' (started with C86) and you state, yourself, that in C you are a newbie

I am not proposing anything definitive, irrevocable, half-intelligent nor anything which you don't use anyway - except the automatic flagging of variables as critical, which I propose to be optional and by default off
C, already is full of 'traps' many of them showing up by you 'believing' the compiler will tell you some thing that it is not supposed to, and thus rarely will. Such an 'option' would lead to many hours of debugging because the compiler - or you - forgot to flag one such case. Many "clerical errors" (e.g. '==' and '=') in C are caught by the compiler, but not on a constant basis and I almost would rather have no reports where the report is not infallible.

I believe a warning can't make any harm.
I can not count the number of cases whewre I have found someone elses bug buy removing his "warning suppression".

I believe automatic interrupt disable/enable (or any other mechanism) around manipulation of a variable flagged critical (manually, by the user) may be beneficial.
No, anything 'hidden' is very deterimental for two reasons:
1) you do not know it is there and thus, if it being there is a problem, you will spend ages hunting the problem.
2) you believe it is there and spend ages hunting the problem that, in this particular case, it is not.

Can you please avoid discussing politically and concentrate on technical issues?
I do not recall anything 'political' in this thread

Erik

List of 32 messages in thread
TopicAuthorDate
atomicity, multibyte variables, C and my comfort            01/01/70 00:00      
   No way            01/01/70 00:00      
      Well, theoretically ...            01/01/70 00:00      
   Yes sdcc at least            01/01/70 00:00      
      Keil            01/01/70 00:00      
   Does it matter?            01/01/70 00:00      
      sort of...            01/01/70 00:00      
         Lack of this feature ...            01/01/70 00:00      
            really?            01/01/70 00:00      
   talking out of both sides of the mouth            01/01/70 00:00      
      :-)            01/01/70 00:00      
         the simple solution            01/01/70 00:00      
            The question was not how to fix it...            01/01/70 00:00      
   Don't disable            01/01/70 00:00      
      C extensions            01/01/70 00:00      
         ring buffer, atomicity and C            01/01/70 00:00      
            OK that was a stupid example...            01/01/70 00:00      
      Hardware solution called for            01/01/70 00:00      
         isn't HLL supposed to hide the low level details?            01/01/70 00:00      
            the skinny            01/01/70 00:00      
               Word length & Atomicity            01/01/70 00:00      
            Side effects            01/01/70 00:00      
               questions and answers            01/01/70 00:00      
                  Embedded Specific            01/01/70 00:00      
                     Neil, you GOT it            01/01/70 00:00      
                        waitaminute...            01/01/70 00:00      
                           from an old hand to a newbie            01/01/70 00:00      
                              what helps is good (?)            01/01/70 00:00      
                                 The warning you propose would be 'wrong' in some c            01/01/70 00:00      
                                    wrong warnings            01/01/70 00:00      
                                       Read-Modify-Write            01/01/70 00:00      
                                          OK then not simple            01/01/70 00:00      

Back to Subject List