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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/07/06 15:08
Read: times


 
#129131 - intuitive
Responding to: ???'s previous message
OK, so you want the labels to be "self-commenting"?

Isn't that YOU who speak against the "self-commenting code" idea?

There is no such thing as "self-commenting code". However, if you see an operand that refer to a label 5 pages ahead, it is a whole lot easier to remember "done" than xzxx_47.

My 'prefixing' is done for two purposes:
a) when doing a global search
b) if you have two identically named local variables, the ICE can "play mind games" with you. I recall a VERY LONG session, before I got wise to this, where a watch in the the ICE (my mistake) referred to 'index' in routine x and I looked at it while debugging routine y.

Erik

PS to the assembler phanatics: If you have a main() in C which can be as simple as
void main (void)
{
AssemblerCode();
)

you can, in Keil, use the OVERLAYABLE keyword and 'gain' an awful lot of RAM.

List of 27 messages in thread
TopicAuthorDate
Interrupt handeling in C/C++ for 8051            01/01/70 00:00      
   before asking such questions, work through the Kei            01/01/70 00:00      
   RTFM            01/01/70 00:00      
      It is enough now THANKS A LOT for Mr. Andy Neil            01/01/70 00:00      
   labels?            01/01/70 00:00      
      ARGH            01/01/70 00:00      
         labels?            01/01/70 00:00      
            still meaninbgless            01/01/70 00:00      
               what's O in ANOloop/ANOdone?            01/01/70 00:00      
                  an abbreviation of AddNumber            01/01/70 00:00      
               aaah now I see what you meant...            01/01/70 00:00      
                  intuitive            01/01/70 00:00      
                     that's not the case            01/01/70 00:00      
                        it would take, at least, 10.000 programmers to fin            01/01/70 00:00      
      switching to structured programming?            01/01/70 00:00      
         OOPS            01/01/70 00:00      
            to structure or not to structure            01/01/70 00:00      
               it is            01/01/70 00:00      
                  sometimes yes, sometime not quite so well...            01/01/70 00:00      
            eh?            01/01/70 00:00      
               YOUR definition            01/01/70 00:00      
                  hmm........            01/01/70 00:00      
                     different from what?            01/01/70 00:00      
                        this            01/01/70 00:00      
   labels yes but nor RANdom Capitalization please            01/01/70 00:00      
      what is 'random' about            01/01/70 00:00      
   that you believe in one definition ...            01/01/70 00:00      

Back to Subject List