??? 12/27/10 21:44 Read: times |
#180307 - it's not just the tools Responding to: ???'s previous message |
Per Westermark said:
AVR assembly code will need to be rewritten if moving to another architecture.
But a large percentage of embedded products can have a large percentage of the code written in C. And gcc is free and available for many architectures. So there is normally not any expensive development tools that gets worthless if moving to another architecture. Few AVR users have manated to invest more than maybe $500 in Atmel tools. It's the investment in knowledge and code that is the real investment. And people will good knowledge about multiple architectures will try to write their code to minimize the cost of moving it between architectures, just for the simple reason that the company is constantly looking at different processors to see if it is meaningful to redesign to cut manufacturing costs. Well, first of all, the "best" code for one architecture or even one chip within that architecture, is not code that's written to be easily portable between architectures. While it may be good to write code that's portable when you're trying to decide on an architecture, or perhaps a particular chip from a list, the truly best code for a specific task, IMHO, is the code that's been written for that task, often with parts in ASM, and sometimes entirely in ASM, because it fully utilizes the features of that particular architecture or chip. No generic HLL compiler is going to do that for you. You have to determine for yourself which parts have to be "hand-tweaked" and which do not, and those always will vary between architectures. Not only that, when you're moving from one chip within that architecture to another, each one will have strengths and weaknesses that have to be handled carefully and precisely. If one wants code that's easily portable, one has to give away some of the advantages that one chip or one architecture has over another in order to make each feature set fit the generic compiler. The REAL problem with single-sourced components lies in the behavior of your supply chain. If you're using 10E6 parts per year, you probably won't have to worry about getting your weekly allocation. If, however, you use 100 components per year, it's very likely your deliveries will be haphazard because the behemoth corporation down the street absorbs them as part of your order from time to time, and the distributor doesn't really care whether or not YOU go out of business because he missed scheduled delivery. RE |