EXCEPTION HANDLING METHOD AND RELATED APPARATUS

    公开(公告)号:US20230401069A1

    公开(公告)日:2023-12-14

    申请号:US18455612

    申请日:2023-08-24

    Inventor: Ning Chu

    CPC classification number: G06F9/3865 G06F9/30123

    Abstract: 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.

    Exception handling method and related apparatus

    公开(公告)号:US12260222B2

    公开(公告)日:2025-03-25

    申请号:US18455612

    申请日:2023-08-24

    Inventor: Ning Chu

    Abstract: 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.

    PROGRAM CALL STACK CREATION METHOD AND UNWIND STACK METHOD AND APPARATUS

    公开(公告)号:US20240211277A1

    公开(公告)日:2024-06-27

    申请号:US18600556

    申请日:2024-03-08

    Inventor: Ning Chu

    CPC classification number: G06F9/44521

    Abstract: This application discloses a program call stack creation method and apparatus, and an unwind stack method and apparatus. The call stack creation method includes: obtaining a first program, where the first program includes a first function, in a process of calling a runtime library to run the first program, adding a second function and creating a call stack, where the call stack includes a first stack frame, a second stack frame, and a third stack frame that are respectively corresponding to the first function, the second function, and a third function. An unwind stack performance can be improved to a maximum extent without affecting a non-stack trace scenario.

Patent Agency Ranking