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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/05/07 20:37
Read: times


 
#147915 - general re 'portable code'
Responding to: ???'s previous message
I will bet anyone who cares, that much, much more effort has been put into making code portable than the effort would have been to, in the few instannces where 'porting' actually took place, use 'non-portable' code as a template for code matching the portee.

I have absolutely nothing against 'nominal' efforts to make code portable (e.g. the phrase 'unsigned char' appear only once in any program of mine). However, to, for the sake of principle, spend days to make a program so it will compile with Keil, IAR and SDCC for a '51, a PIG, an AVR and a 68' is ridiculous (I have seen such done). To take a few things from a '51 to an ArghVR, it will take, based on experience, 15 minutes to 'port' the 'non-portable' code - been there, done that.

Now, I just realize one thing. Everything I say is based on using CodeWright, for those of you using an inferior editor the results will vary.

Erik

List of 20 messages in thread
TopicAuthorDate
How to write portable code            01/01/70 00:00      
   C is a language - not a compiler            01/01/70 00:00      
      PL/M            01/01/70 00:00      
         Have you considered PLM2C?            01/01/70 00:00      
   A good point - often missed            01/01/70 00:00      
   So what's the downside?            01/01/70 00:00      
      Complex code - Libraries            01/01/70 00:00      
         COTS libraries versus inhouse libraries            01/01/70 00:00      
            Hence portability is not such a big issue!            01/01/70 00:00      
      There are downsides            01/01/70 00:00      
         Portability vs. Readability/Maintainability.            01/01/70 00:00      
   who gives a hoot about portability            01/01/70 00:00      
      Portable by BIOS            01/01/70 00:00      
   I give a hoot about portability            01/01/70 00:00      
      I am definitely not arguing against "code reuse"            01/01/70 00:00      
         HAL            01/01/70 00:00      
   Small and easy things that may make Your day            01/01/70 00:00      
   The developer is probably the biggest factor            01/01/70 00:00      
      I may take issue with this one...            01/01/70 00:00      
   general re 'portable code'            01/01/70 00:00      

Back to Subject List