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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/29/08 12:38
Read: times


 
#157855 - I disagree here.
Responding to: ???'s previous message
So, I say, the portability advantage of C is a myth (not because it is not portable, but because it is none more portable than asm).

Well, in one project which was mostly assembly (since the compiler didn't know about half of the instructions of the CPU), I wrote the major part of a communications protocol in C, because it was mainly very generic processing (take a few bytes and twiddle some other bytes depending on the value of the first bytes, for the most part). Not only would that have been a major pain in the rear to write in assembly, especially if it was supposed to be efficient (the processor in question was pipelined and had some funny features like delayed instructions), it would also have been as non-portable as you can get.

The C code was pretty much reusable - no modification required, since all the machine-specific stuff was located in different modules.

List of 18 messages in thread
TopicAuthorDate
Assembly vs C            01/01/70 00:00      
   tools for the Job            01/01/70 00:00      
      Other languages for the 8051            01/01/70 00:00      
         yes            01/01/70 00:00      
            C/C++ almost dead for PCs?            01/01/70 00:00      
               .NET does not preclude C++            01/01/70 00:00      
                  C# or C++            01/01/70 00:00      
               yes especially for systems programming            01/01/70 00:00      
      Multiple implementations            01/01/70 00:00      
   re:-)            01/01/70 00:00      
   to C or not to C            01/01/70 00:00      
      C = RAD            01/01/70 00:00      
         rapid            01/01/70 00:00      
            I disagree here.            01/01/70 00:00      
               this again depends            01/01/70 00:00      
   you said it            01/01/70 00:00      
   Ain't this the truth!            01/01/70 00:00      
      Often even worse            01/01/70 00:00      

Back to Subject List