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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/07/08 21:23
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#157306 - C works well
Responding to: ???'s previous message
I love the current C implementations on the C51. They are doing a great job in an "hostile environment".

I have done most of my C51 work using PLM51, and C is definitely a couple of steps forward.

But when a super-loop starts to be too complicated, I would go for a different processor since the development time/costs starts to increase when switching to assembler. Yes, the call graphs - even if cooperative multitasking - will be so complex that they can't be analyzed. A call tree is limited to the definition of a tree, i.e. a common root that then branches out. But with cooperative multitasking, it will become a directed graph. That is what I meant with the analogy with function pointers. Every switch point can bee seen as a function pointer - a way where a new call tree can start.

This world has seen a large number of architectures since this world has a need of very different applications.

When developing in C, the cost to start using a new architecture isn't so high, counted in time. It may take a lot of money if expensive compilers must be bought. But most architectures has free or low-cost tools available. Not all projects needs the best compiler and/or debugger the market can supply.

With the low cost of todays processors, it can also be meaningful to look at slave processors. Maybe multiple identical processors, but just as well different architectures from different manufacturers. Nothing wrong with combining an ARM and a C51, interfacing them using SPI.

List of 27 messages in thread
TopicAuthorDate
Non Blocking timer            01/01/70 00:00      
   Use a hardware timer            01/01/70 00:00      
      Thanks - But.....            01/01/70 00:00      
         State machines            01/01/70 00:00      
            THANKS - That's a great idea            01/01/70 00:00      
               if you have a lot to delay by various delays            01/01/70 00:00      
                  I Like that Idea as well            01/01/70 00:00      
                  A Linked List might be better here            01/01/70 00:00      
                     the correct use takes care of this            01/01/70 00:00      
                        Not necessarily            01/01/70 00:00      
   Cooperative or preemptive multitasking            01/01/70 00:00      
      Super-loop contra cooperative multitasking            01/01/70 00:00      
         Multasking can work on the 8051 ... sometimes            01/01/70 00:00      
            Not just stack            01/01/70 00:00      
               I agree            01/01/70 00:00      
                  Choose your battles carefully            01/01/70 00:00      
               I agree, too            01/01/70 00:00      
                  and            01/01/70 00:00      
                     Never underestimate the usefulnes of interrupts            01/01/70 00:00      
                        a flavor            01/01/70 00:00      
                           prioritizing in super-loop            01/01/70 00:00      
                              the fact is ..            01/01/70 00:00      
                  C works well            01/01/70 00:00      
                  Circular argument?            01/01/70 00:00      
                     Re: Circular Argument            01/01/70 00:00      
                        going round in circles            01/01/70 00:00      
            small multitasker            01/01/70 00:00      

Back to Subject List