??? 07/27/06 21:17 Read: times |
#121221 - Portability and scars Responding to: ???'s previous message |
Any programmer who has had to port code that wasn't intended to be ported will probably be bearing the scars. Once code has been ported to a second platform, the port to a third platform tends to be much quicker because the common code and the specific code will probably have been separated out to a fair degree.
A programmer with porting experience will know very quickly whether code has been written to be ported or not. In C there will be lots of retyping of ints to UInt16 and the like, so that compiler implementation differences can be fixed in one place. Porting assembler may not seem too difficult, but then you're probably not going to port it too far. On the other hand I've ported C from the 8051 to a 68HC08, something that isn't realistic in assembler. I've also recoded a project which was occupying 5kB of ROM in assembler, and my C implementation occupied 3kB of ROM. C is a very powerful tool, but it takes years to learn how to use it properly. |
Topic | Author | Date |
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 |