??? 06/19/09 03:49 Read: times |
#166238 - If only that were the case Responding to: ???'s previous message |
Since different architectures have different ways of accessing sfr's, or other hardware/architecture-related features, the fact one know how to program 'C' on a mainframe or PC won't help in dealing with the architecture. Consequently, it's seldom possible to write code that will compile equally effectively on a single compiler for All the PIC's, ALL the 805x's, ALL the M68HCx08's, etc.
Further, the point was that KEIL code must be written differently than similarly functioning code for SDCC. I assume it's true for other compilers as well. It's certainly different for PC-'C'. What's irrelevant is the assumption that you've put forth, Per. It matters a great deal which compiler is in use, as the syntax is different, since it's not standard 'C' once one is into the low-level details ... details that should be written in ASM. Just look through the last few years' complaints about this very thing. RE |