Patent attributes
A system and method for compiling a computer program comprising (a) performing a compilation generating an initial mapping of each code portion of the program in the memory; b) evaluating and generating a cost value associated with the initial mapping; c) if the cost value does not satisfy a threshold cost value, re-performing the compilation having regard to the record of each memory section; d) re-evaluating and generating a revised cost value associated with the modified mapping; e) iteratively repeating steps (c) and (d) until a predetermined condition is met; and f) outputting the mapping whose associated cost value most closely satisfied the threshold cost value. Such an approach enables a reduction in the power consumption resulting from memory accesses, reduces local memory requirements, and reduces the risk that size and complexity of the computer program will be constrained by the given local program memory size.