Intermediate Language Generation Using Partial Execution Feedback
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for generating intermediate language for computer program code face inefficiencies when dealing with processes where intermediate language cannot be generated or is not efficiently generated due to unknown conditions, such as redundant columns in a table, leading to reduced program efficiency.
Innovation Solution
An intermediate language generation apparatus and method that executes intermediate language for a portion of the processes, utilizing metadata from partial execution results to generate efficient intermediate language for subsequent processes, optimizing the entire program execution.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If intermediate language is generated for all processes without execution, then generation speed is fast, but efficiency is reduced due to unknown conditions
Solution Approach 1:
The patent applies preliminary action by executing a portion of the intermediate language generation process before completing the entire generation. Specifically, it generates and executes intermediate language for the first function (reading CSV data) before generating intermediate language for subsequent functions. This allows the system to obtain actual execution results and metadata (such as column names and data types) that inform more efficient intermediate language generation for later processes, resolving the contradiction between fast generation and execution efficiency.
2Reliability
If intermediate language execution is delayed until generation is complete, then generation completeness is achieved, but execution efficiency is reduced
Solution Approach 1:
The patent applies segmentation by dividing the intermediate language generation and execution process into multiple segments or stages. Instead of generating all intermediate language and then executing it, the system generates intermediate language for the first function, executes it, uses the results to inform generation of subsequent intermediate language, and continues this process. This segmented approach maintains reliability through complete generation while reducing execution time by avoiding redundant operations identified through partial execution.
3Reliability
If all columns are processed without optimization, then data completeness is ensured, but processing efficiency is reduced
Solution Approach 1:
The patent applies feedback by using the execution results and metadata obtained from partially executing intermediate language as input for generating subsequent intermediate language. Specifically, information about column names, data types, and redundancy from the first function's execution feeds into the generation process for subsequent functions. This feedback mechanism ensures data completeness is maintained while processing efficiency is improved by avoiding redundant column operations.
Data Source
AI summary
An intermediate language generation apparatus generates, in generating an intermediate language for processes written in the program to be executed, an intermediate language for a portion of the processes and executes the generated intermediate language for the portion; and generates, based on execution results of the intermediate language for the portion, an intermediate language for processes subsequent to the portion of processes among the processes, and generates an intermediate language corresponding to the entire program, in which the intermediate language for the subsequent processes is added to the intermediate language for the portion.


