摘要 |
The present invention provides a method for optimizing machine code to be executed on a device that comprises one or more busses and a plurality of processing elements, wherein the machine code is configured to execute a task on the device comprising a plurality of subtasks, wherein the method comprising the steps:
- identifying for at least one subtask one or more processing elements from the plurality of processing elements that are capable of processing the subtask,
- identifying one or more paths for communicating with the one or more identified processing elements,
- predicting a cycle length for one or more of the identified processing elements and/or the identified paths,
- selecting a preferred processing element from the identified processing elements and/or selecting a preferred path from the identified paths, and
- generating the machine code sequence that comprises instructions that cause the device to communicate with the preferred processing element over the preferred path and/or to execute the subtask on the preferred processing element. The present invention also relates to a device and a system. |