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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/27/08 21:56
Read: times


 
#149987 - Generate Skeleton C code
Responding to: ???'s previous message
Various commercial C Compilers for AVR, PIC, PSoC contain Code Wizard programs.

Via a HTML form, the device, xtal, timers, peripherals are all selected and configured. The Wizard then generates ISR and initialisation code.

Because the 8051 has SO many derivatives, I can see that it will be a nightmare to maintain the device tables and ensure that "features" are overcome.

The biggest problem is portability. As far as I know the more sophisticated Wizards are bound to specific compilers. Naming conventions, memory addressing and interrupt syntax vary widely. If you can imagine the difficulties new users currently have with reading data sheets and compiler documentation. A universal Wizard will keep this forum very busy.

Skeleton code also has to deal with unsupported code libraries, and startup code.

Personally I would suggest that any proposed project should concentrate on ONE commercial compiler. This is the only way that you can minimise the syntax and version anomalies. I have used the AVR wizards and they are quick and easy to set timer modes and values without calculating them by hand.

As Jan is not fond of C, to produce anything to encourage conformance to assembler coding style is doomed. Assembler programmers will argue more than any other people in the world.

David.

List of 25 messages in thread
TopicAuthorDate
Weekend question: What repeats frequently on '51?            01/01/70 00:00      
   Tools in Assem            01/01/70 00:00      
   Repeated tasks            01/01/70 00:00      
      mSec Clock Tick, off a timer interrupt            01/01/70 00:00      
         CodeArchitect            01/01/70 00:00      
            C runtime initializer tool            01/01/70 00:00      
   Generate Skeleton C code            01/01/70 00:00      
      biggest problem vs. nightmare            01/01/70 00:00      
         i think oranges and apples            01/01/70 00:00      
            it's the other way round            01/01/70 00:00      
               re SILabs            01/01/70 00:00      
                  done            01/01/70 00:00      
                     a general note on stuff like this            01/01/70 00:00      
               you missed the point            01/01/70 00:00      
                  misunderstanding squared            01/01/70 00:00      
                     of course it does ...            01/01/70 00:00      
                     Too much like hard work            01/01/70 00:00      
                        a most hnorable 'like'            01/01/70 00:00      
                        OOPS a doublr            01/01/70 00:00      
            hard work            01/01/70 00:00      
      Assembly programmers not the worst            01/01/70 00:00      
   Another Example            01/01/70 00:00      
      neighbours            01/01/70 00:00      
   Code Architect            01/01/70 00:00      
      options are good            01/01/70 00:00      

Back to Subject List