Compiler Error Handling via Resource Initialization Instructions
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In large-scale programs, rerunning a program with errors is time-consuming due to the need for administrators to initialize resources and update file histories before restarting, often resulting in incomplete program termination and potential failure to rerun the program.
Innovation Solution
A computer-readable medium and execution control method that convert called programs into instructions for initializing resources and returning control to the caller program, allowing for efficient error handling and rerunning without full program termination.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If control is returned to a high-order program using conventional methods (GOTO, setjmp, longjmp), then program cooperation is achieved, but it takes time to initialize resources and prepare before rerunning the program
Solution Approach 1:
The patent applies preliminary action by automatically initializing resources and updating file histories before the program reruns, eliminating the need for manual preparation. The execution control apparatus performs these actions in advance as part of the error handling process, so when the program restarts, everything is already prepared.
Solution Approach 2:
The system applies self-service by having the execution control apparatus automatically manage resource initialization and file history updates without requiring external administrator intervention. The system serves itself by detecting errors and autonomously performing the necessary preparatory actions for program rerun.
2Reliability
If a large-scale program is entirely ended and rerun from the beginning, then resource initialization is ensured, but it takes a lot of time to successfully end the complicated program entirely
Solution Approach 1:
The patent applies segmentation by dividing the program execution into modular units that can be independently controlled. When an error occurs, only the necessary portion of the program is terminated and rerun, rather than forcing a complete program termination. This modular approach allows for more efficient error handling and reduces unnecessary downtime.
Solution Approach 2:
The execution control apparatus acts as an intermediary between the program and the operating system, managing resource allocation and program termination more efficiently. It mediates the error handling process by automatically cleaning up resources and preparing for rerun, eliminating the need for complete program termination while ensuring proper resource initialization.
3Loss of time
If a large-scale program is not overall successfully ended, then rerun time is reduced, but the program might not be able to rerun due to incomplete termination
Solution Approach 1:
The patent applies taking out by extracting the resource management and error handling functions from the main program flow and placing them in the execution control apparatus. This separation allows the program to be terminated more quickly without compromising resource cleanup, as the control apparatus independently manages resource initialization and program rerun capability.
Data Source
AI summary
An input unit of a compiler accepts a second program called by a first program. A converting unit of the compiler converts the accepted second program into a program in which an initialization instruction and a return instruction are additionally written as instructions executed when an error occurs. An execution control unit of an execution controller executes an execution file having the program where the instructions are additionally written by the compiler in cooperation with a predetermined function group. If an error occurs, an error processing unit of the execution controller initializes a resource based on the initialization instruction described in the program in the execution file having the error, and returns to a caller program based on the return instruction.


