|
TriMedia's CPU core is designed to be programmed directly in C and C++. To make efficient use of the highly parallel architecture, the compiler is critical to the efficiency of the TriMedia. The compiler essentially becomes an integral part of the processor. The compiler optimises instruction scheduling to use the multiple functional units to best advantage.
The TriMedia compiler can work on C or C++ code. In fact the TriMedia Software Architecture, and the whole way that TriMedia software components and peripherals are programmed, is geared towards an efficient 'object oriented' approach that helps preserve both efficiency and re-usability of code. In order to optimise for the conditions that obtain when the program is actually running, a program run on the simulator or the actual processor can be made to produce profiling information: this can be automatically fed back to the compiler to guide a further step of optimisation. For complex code several iterations can produce progressively better tuned code. |