New global header file available
Ben Avison (25) 445 posts |
One for assembler programmers, this… RISC OS programs are generally expected to run on the widest possible range of ARM chips, right from the ARM2 (ARM architecture v2) up to the Cortex-A8 (ARM architecture v7). In an attempt to support the full range of CPUs, software is often forced to forego new CPU features, or else invoke conditional or branched execution at run-time to cater for all CPUs. Either way, it means you’re unlikely to get the best performance possible. There is another way, though: build-time switches can target the binary to one or more specific CPUs. Whilst the performance gain is not worth the administative overhead of maintaining multiple binary variants for most disc components (with the notable exception of CPU-intensive things like codecs and graphics renderers), there is no good reason why ROM builds shouldn’t be more closely targetted at the relevant CPU than they have traditionally been. The best technique the build system has provided for this so far is the The new header file, You can examine the header file here. Examples of its use are included in comments. |