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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/18/09 13:11
Read: times


 
#166221 - Andy's right!
Responding to: ???'s previous message
Andy Neil said:
Andy Neil said:
... it would certainly be sufficient to prevent most of the problems that people bring to this and other forums...


Jez Smith said:
Being able to list every nemonic and its equivelent hex code doesn't stop people from asking for code.

True, but that's not what I was thinking of.

I was thinking more generally of people who post problems, and their problem is due to the fact that they've assumed that they can just write 'C' like they do on a PC - whereas, if they had even the faintest understanding of the underlying 8051 architecture, it'd be obvious why their code didn't work.
Yes, that is a digression from the topic of this thread.

Of course, someone with sufficient commitment to learn every nemonic (sic) and its equivelent hex code is also likely to be able to do their own googling and not need to just ask for code...


It wasn't my intent to suggest that nobody who couldn't remember the mnemonics and their hex equivalents for every MCU he used was incompetent, or otherwise unable to generate embedded code. I did, however suggest, in agreement with Andy, that one who could do that certainly wouldn't generate the sorts of questions that often come up among the many "gimme code" discussions. If a fellow can do the job in ASM and it's foreseen that there will be extensive ongoing product code maintenance, as opposed to complete redesign in later revisions, then it is probably a good choice to use HLL.

Most of the "gimme-code" questions are really "do my work and my thinking for me" questions. Some are not. I won't deny that some are legitimate questions from people simply wanting to look at functional examples of solutions to a specific problem. The easiest way to filter those out of the global rejection of "do my work" queries is to ask, "What have you done so far, and what's the problem? There have been many threads, some quite long, (remember that scrolling LED matrix thing from the fellow in Egypt?) at the end of which it was clear the O/P had done nothing, or very little of his own work, was able only to quote the work of others, which he failed to understand in even the most basic way, and kept returning to the demand for "something that works." OTOH, there are occasional threads started by one fellow in Brazil, who's clearly an active hobbyist, who wants to do something and has some background experience, and has a history of doing things, AND asks questions in a way that makes it apparent he's done something already. Oddly enough, the latter is a case where the O/P actually seems to understand and benefit from the wide range of suggestions that are presented, and seldom makes demands/requests for "something that works," choosing instead to ask "what should I be looking at/for in this case?"

Surely one can appreciate the difference!

Now, Andy has also pointed out my principal objection to the use of 'C' on MCU's by people not experienced in programming those same MCU's in ASM. Doing the job in ASM requires an understanding of the architecture and the specifics of the hardware environment, including the oscillator frequency and the way in which that specific MCU handles it. A recent thread regarding delay loops and 'C' demonstrates what I mean. My position remains that, if a programmer can write code that successfully accomplishes a task in ASM, then he can do it. Whether he does it in 'C' or Pascal, or even BASIC, doesn't matter, because he knows how to do it. Most of the queries we see here are presented by people who don't know how to do it, yet expect that the compiler will know. The compiler neither knows, nor cares!

If one can "get the job done" in HLL without requiring a larger code memory or faster MCU than would be demanded by ASM, then HLL is fine. If one needs to double the clock speed, thereby requiring a more costly MCU, or if one needs the next-larger size of internal code space in his MCU, then it becomes a business decision, which engineers aren't supposed to be making. HLL will make ongoing support easier, hence, and probably less costly. Again, however, that's a business decision, and not an engineering choice.

RE


List of 95 messages in thread
TopicAuthorDate
What's wrong with gimme code?            01/01/70 00:00      
   Mainly            01/01/70 00:00      
      I agree with Jez Smith            01/01/70 00:00      
         Non academic gimme code?            01/01/70 00:00      
            This makes me very suspicious            01/01/70 00:00      
            gimme code=my own time is too valuable            01/01/70 00:00      
               Easy to see which is school assignment            01/01/70 00:00      
                  The wise student needs pointers, not complete solutions            01/01/70 00:00      
            "Here's what I've come up with ...            01/01/70 00:00      
               But what's wrong in asking for an example implementaton?            01/01/70 00:00      
                  The teacher recognises the good student            01/01/70 00:00      
                     Now there's a laugh if ever there was one ...            01/01/70 00:00      
                  nothing IF ...            01/01/70 00:00      
            children should do their own homework            01/01/70 00:00      
   What's wrong with gimmee code.            01/01/70 00:00      
   Sounds Like; Whats wrong with Spoon Feeding..?            01/01/70 00:00      
      perhaps it enables ...            01/01/70 00:00      
         Generic solutions applicable to more people            01/01/70 00:00      
         Then they'll become expert at potty ...            01/01/70 00:00      
   it makes you dumb!            01/01/70 00:00      
   How'd you like ten of those guys working for you?            01/01/70 00:00      
      But that's the point!            01/01/70 00:00      
         We agree in principle, Kai ... but ...            01/01/70 00:00      
         Hiring & firing is expensive!            01/01/70 00:00      
            and that's not all!            01/01/70 00:00      
   As an example            01/01/70 00:00      
      No-one is suggesting breach of copyright            01/01/70 00:00      
         arrogance?            01/01/70 00:00      
            Examples of Erik's arrogance            01/01/70 00:00      
               no, I do not state any such,            01/01/70 00:00      
                   A couple of corrections            01/01/70 00:00      
                     more useful product?            01/01/70 00:00      
         life is not B&W            01/01/70 00:00      
            Good help _is_ to a big part to give hints            01/01/70 00:00      
               Votes and freedom of speech?            01/01/70 00:00      
               When I was a youngster ...            01/01/70 00:00      
                  Returning to the original subject.            01/01/70 00:00      
                     same same but sometimes different            01/01/70 00:00      
                     Since you like AVRFREAKS so much ...            01/01/70 00:00      
                  Versatility and diversification            01/01/70 00:00      
                     This is 8052.COM            01/01/70 00:00      
                  and.....            01/01/70 00:00      
         There's always help for those who can do their own work.            01/01/70 00:00      
            There's the key!            01/01/70 00:00      
         that is not the issue            01/01/70 00:00      
            I'm with you 100% on that, Erik            01/01/70 00:00      
               calm down Richard            01/01/70 00:00      
                  support for more MCU's makes it more widely useful            01/01/70 00:00      
                     it?            01/01/70 00:00      
                        Which MCU's will KEIL support?            01/01/70 00:00      
                           Irrelevant            01/01/70 00:00      
                              Keil's blind spot            01/01/70 00:00      
                                 Keil will probably get squeezed            01/01/70 00:00      
                              If only that were the case            01/01/70 00:00      
                                 Portable 'C' [edited]            01/01/70 00:00      
                                 Write what you mean or mean what you write            01/01/70 00:00      
                                    OK ... Here's the point            01/01/70 00:00      
                                       If bugs is a big problem - consider your compiler choices            01/01/70 00:00      
                                 C is not that difficult            01/01/70 00:00      
                                    I can't totally disagree ... it's a matter of degree            01/01/70 00:00      
                                    Richard misses the point completely            01/01/70 00:00      
                  The thing is...            01/01/70 00:00      
                     I don't think thats true at all            01/01/70 00:00      
                        Not what I meant            01/01/70 00:00      
                           Andy's right!            01/01/70 00:00      
         elders and betters would have given a helpful reply.            01/01/70 00:00      
   If you think 8052.com is bad ...            01/01/70 00:00      
   When was it the last time someone asked for code?            01/01/70 00:00      
      oohhh            01/01/70 00:00      
      Here?            01/01/70 00:00      
      Latest example of "Gimme Code"            01/01/70 00:00      
   What the forums are all about            01/01/70 00:00      
      Progress            01/01/70 00:00      
         No, don't agree with "exhausted all the possibilities"            01/01/70 00:00      
            patience            01/01/70 00:00      
         inexperienced            01/01/70 00:00      
            Well actually...            01/01/70 00:00      
               you must have a very smart wife            01/01/70 00:00      
                  If you're a friend ;-)            01/01/70 00:00      
      arrogant?            01/01/70 00:00      
         encouragement            01/01/70 00:00      
            absolutely            01/01/70 00:00      
            What you have to remember            01/01/70 00:00      
               Tim Berners-Lee            01/01/70 00:00      
                  he only invented the web thingy            01/01/70 00:00      
                     Exhausted all the possibilities...            01/01/70 00:00      
                        this is just not fair            01/01/70 00:00      
                           It's about attitude            01/01/70 00:00      
                              on intentions etc.            01/01/70 00:00      
                              98% of 100            01/01/70 00:00      
                           good and bad            01/01/70 00:00      
      OK Charles (et al), here's your chance!            01/01/70 00:00      
         re: OK Charles here's your chance            01/01/70 00:00      
            QED.            01/01/70 00:00      
            Yet one more exhausted visitor            01/01/70 00:00      

Back to Subject List