Method and device for generating optimized program, program execution device, and recording medium
A technology for generating devices and programs, applied in the field of generating optimized programs, which can solve problems such as ineffective use of execution frequency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0082]
[0083] The program of Embodiment 1 is a program executed by a processor having a plurality of processor elements, that is, a program executed by a computer (hereinafter referred to as "target hardware"). The procedure of Example 1 has been improved from the conventional procedure.
[0084] The program of Embodiment 1 includes: a code sequence including a code sequence generated by converting a source program including a portion repeatedly executed into an execution format (hereinafter referred to as "compensation path code"); A code sequence of code sequences for multiple paths (in which there are no branch instructions) (hereinafter referred to as "path-specific code").
[0085] Each of the compensation path code and the specific path code includes a history update processing code that increments execution history information indicating the number of execution times of the path and total execution number information indicating the number of times of execution as T...
Embodiment 2
[0274]
[0275] In the process of checking the specific path codes to be executed in parallel with each other in Embodiment 1, the execution program 130 cancels the assignment of the processor element to the specific path code corresponding to its execution number and the total execution number in the specific path code that has been executed in parallel with the compensation path code. The assignment of specific path codes for paths whose ratio is less than the path selection threshold (hereinafter such paths are referred to as restricted paths) assigns processor elements to those that have not yet been executed in parallel and whose ratio of the number of executions to the total number of executions is greater than the path selection threshold The specific path code of the value, depends on the number of processor elements available on the target hardware, and causes this specific path code to execute in parallel with the compensating path code. This structure enables effic...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 