18455612. EXCEPTION HANDLING METHOD AND RELATED APPARATUS simplified abstract (HUAWEI TECHNOLOGIES CO., LTD.)

From WikiPatents
Jump to navigation Jump to search

EXCEPTION HANDLING METHOD AND RELATED APPARATUS

Organization Name

HUAWEI TECHNOLOGIES CO., LTD.

Inventor(s)

Ning Chu of Beijing (CN)

EXCEPTION HANDLING METHOD AND RELATED APPARATUS - A simplified explanation of the abstract

This abstract first appeared for US patent application 18455612 titled 'EXCEPTION HANDLING METHOD AND RELATED APPARATUS

Simplified Explanation

The abstract describes an exception handling method for a processor, which improves its running performance. Here are the key points:

  • The method involves a processor calling a second function when a first function is executed in a high-level language.
  • The second function is a runtime function that handles exceptions.
  • If an exception occurs during the execution of the second function, the processor performs a return operation.
  • The return operation restores the status of a first register used during the execution of the second function to its state before the first function called the second function.
  • The processor then performs exception handling based on the status of the first register.

Potential applications of this technology:

  • This exception handling method can be applied to processors used in various computing devices, such as computers, smartphones, and embedded systems.
  • It can be used in programming languages that support exception handling, improving the efficiency and performance of exception handling mechanisms.

Problems solved by this technology:

  • Traditional exception handling methods can be inefficient and impact the performance of processors.
  • This method addresses these issues by optimizing the handling of exceptions, reducing the overhead associated with exception handling.

Benefits of this technology:

  • Improved running performance of the processor by optimizing exception handling.
  • More efficient and faster execution of high-level language functions.
  • Enhanced overall system performance by reducing the impact of exceptions on processor operations.


Original Abstract Submitted

This application discloses an exception handling method, which may be applied to a processor. The method includes: The processor calls a second function according to a call instruction of a first function, where the first function is a high-level language function, and the second function is a runtime function. When an exception occurs in a process of executing the second function, the processor executes a return operation of the second function, where the return operation of the second function includes restoring a status of a first register used when the second function is executed to a status before the first function calls the second function. The processor performs exception handling based on the status of the first register. The method can improve running performance of the processor.