Compiler Error Handling via Resource Initialization Instructions

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering 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

Engineering Contradiction:
Improveprogram cooperationVSAvoidtime to initialize resources
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

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.

Inventive Principle:
Principle #10Preliminary action

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.

Inventive Principle:
Principle #25Self-service

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

Engineering Contradiction:
Improveresource initializationVSAvoidtime to end program entirely
Core Design Contradiction:
ReliabilityVSLoss of time

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.

Inventive Principle:
Principle #1Segmentation

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.

Inventive Principle:
Principle #24Intermediary (Mediator)

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

Engineering Contradiction:
Improvererun timeVSAvoidprogram rerun capability
Core Design Contradiction:
Loss of timeVSReliability

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.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS8839191B2Computer-readable recording medium, compiler, execution control apparatus, and execution control method for converting a program to be called
Publication Date: 2014.09.16 FUJITSU LTD
  • US8839191B2 patent drawing
  • US8839191B2 patent drawing
  • US8839191B2 patent drawing

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.