??? 03/24/07 10:32 Read: times |
#135760 - 8051 to AVR migration Responding to: ???'s previous message |
Jan Waclawek said:
David Prentice said:
I personally try to use Vanilla C and try not to use library functions. Most of my code compiles under both Keil and CV. Oh, David, is this because your application needs to run on both platforms, or is this just a precaution, so in emergency you can migrate quickly? Yes Jan, I want to be sure I can use both options. It happens to be that the 8051 is the fallback choice. My question to Erik is how Vanilla is his style? Several postings relate to self-modifying or non-standard coding. I suspect that we all get some satisfaction in writing the fastest or smallest hand-crafted assembler. Just to show a CPU will perform. However you need to avoid these habits for portability. If one or two functions do need the performance then I isolate them completely in separate source files. The AVR runs at a higher speed than most 8051s. In my experience compiled C code will execute fast enough without tweaking. David |