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

Back to Subject List

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


 
#121149 - Defintely 'C'!
Responding to: ???'s previous message
@Jan,

my practical experience was exactly opposite.

I like C, because reusing code on another CPU was many times easier.

I use lot of code almost unchanged on different architectures, e.g. key debouncing, UART-buffering, software RTC+calendar, 1-wire, I2C, CAN and many others on 8051, AVR, ARM.

Also I test often new algorithm with Borland-C before I use it on the 8051.

If you have difficulties to reuse code, I suspect your writing style was not modular.

Its not uncommon for me, that also small projects (AT89C4051) consist of 10 or more object files.

I see also no difference to translate big or small projects, both are many times easier under C.


I agree only in one point, translating code from big machines with gulping big memory down to 8-bit machines may be hard. But the reverse direction on originally written 8-bit code was easy.


Peter


List of 26 messages in thread
TopicAuthorDate
How long we see 8051            01/01/70 00:00      
   unofficial history of 8051            01/01/70 00:00      
      History, or prediction?            01/01/70 00:00      
         It seems to gain, not lose            01/01/70 00:00      
   Does it matter?            01/01/70 00:00      
      Double negative?            01/01/70 00:00      
      to C or not to C            01/01/70 00:00      
         Defintely 'C'!            01/01/70 00:00      
            yeah, let's flame!            01/01/70 00:00      
          Defintely 'C'!            01/01/70 00:00      
            arguments            01/01/70 00:00      
               An example for 8051/AVR            01/01/70 00:00      
                  contra-example for 8051/AVR            01/01/70 00:00      
                  A slight mistake            01/01/70 00:00      
                     stdint.h            01/01/70 00:00      
               That's your trouble, then!            01/01/70 00:00      
                  Compiler independant            01/01/70 00:00      
                  C is not better            01/01/70 00:00      
                  bringing 2 togethert            01/01/70 00:00      
                  Opening pandora's box            01/01/70 00:00      
               Learning C            01/01/70 00:00      
                  for a beginner ...            01/01/70 00:00      
            are You sure?            01/01/70 00:00      
            Portability and scars            01/01/70 00:00      
   I'm an ASM Guru but            01/01/70 00:00      
      why discuss the rare exception tha same apply            01/01/70 00:00      

Back to Subject List