??? 05/05/06 17:07 Read: times |
#115698 - therefore it's inadequate on its own Responding to: ???'s previous message |
The sieve is a popular benchmark, but what is needed here is a test of speed, density, etc, of code from a compiler for a Microcontroller, not for a general-purpose computer. Therefore we need a test of microcontroller things, involving efficient I/O, bit tests, interrupt routine generation, that can be compared/evaluated on the basis of performance and memory usage, among other things.
Readability/comprehensibility/maintainability of source code would be a valuable factor, too. How many times are you required to compute primes, the value of PI to 24K places, or whatever in a microcontroller? I'd guess not often. Computing CRC/ECC, and correcting errors might be more common, as might translating between Manchester code and some other modulation, though. We need table-lookup, synchronous serial stream search-and-compare, motor-speed control functions, precise timing, as in acoustic ranging, ... Do you see the difference? RE |