-
公开(公告)号:US11983090B2
公开(公告)日:2024-05-14
申请号:US17674151
申请日:2022-02-17
Applicant: International Business Machines Corporation
Inventor: Xiao Ling Chen , Wen Ji Huang , Heng Wang , Sheng Shuang Li , Wen Bin Han , Peng Hui Jiang
CPC classification number: G06F11/3604 , G06F8/44 , G06F11/3624
Abstract: A method of analyzing source code includes receiving, by a processor, an updated version of a computer program, the updated version including a source code. The method also includes preprocessing, by a compiler, the source code for a target computing platform. Preprocessing the source code by the compiler includes identifying a macro condition associated with one or more computer instructions enclosed by a macro, determining object code corresponding to the one or more computer instructions based on a current value of the macro condition, and generating object code and macro information for output to a debugger, the macro information including one or more breakpoint conditions in the macro.
-
公开(公告)号:US20230114540A1
公开(公告)日:2023-04-13
申请号:US17931678
申请日:2022-09-13
Applicant: International Business Machines Corporation
Inventor: Wen Ji Huang , Xiao Ling Chen , Sheng Shuang Li , Wen Bin Han , Jun Su
Abstract: A computer-implemented method includes receiving, by a processor, an updated version of a computer program that includes several source code changes. A compiler preprocesses the source code changes for a target computing platform. The preprocessing includes identifying a compile time condition associated with one or more computer instructions enclosed by a macro, determining a current value of the compile time condition at the time of compiling, and determining corresponding object code based on the current value. Further, a macro information record for the macro is generated that includes the compile time condition, the current value, and an identification of the computer instructions. Further, a linker preprocesses the source code changes. This preprocessing includes determining that the object code is not included in an executable file, and updating the macro information record to indicate that the macro is not included in the executable file.
-
公开(公告)号:US20230259444A1
公开(公告)日:2023-08-17
申请号:US17674151
申请日:2022-02-17
Applicant: International Business Machines Corporation
Inventor: Xiao Ling Chen , Wen Ji Huang , Heng Wang , Sheng Shuang Li , Wen Bin Han , Peng Hui Jiang
CPC classification number: G06F11/3604 , G06F11/3624 , G06F8/44
Abstract: A method of analyzing source code includes receiving, by a processor, an updated version of a computer program, the updated version including a source code. The method also includes preprocessing, by a compiler, the source code for a target computing platform. Preprocessing the source code by the compiler includes identifying a macro condition associated with one or more computer instructions enclosed by a macro, determining object code corresponding to the one or more computer instructions based on a current value of the macro condition, and generating object code and macro information for output to a debugger, the macro information including one or more breakpoint conditions in the macro.
-
公开(公告)号:US11481200B1
公开(公告)日:2022-10-25
申请号:US17498138
申请日:2021-10-11
Applicant: INTERNATIONAL BUSINESS MACHINES CORPORATION
Inventor: Wen Ji Huang , Xiao Ling Chen , Sheng Shuang Li , Wen Bin Han , Jun Su
Abstract: A computer-implemented method includes receiving, by a processor, an updated version of a computer program that includes several source code changes. A compiler preprocesses the source code changes for a target computing platform. The preprocessing includes identifying a compile time condition associated with one or more computer instructions enclosed by a macro, determining a current value of the compile time condition at the time of compiling, and determining corresponding object code based on the current value. Further, a macro information record for the macro is generated that includes the compile time condition, the current value, and an identification of the computer instructions. Further, a linker preprocesses the source code changes. This preprocessing includes determining that the object code is not included in an executable file, and updating the macro information record to indicate that the macro is not included in the executable file.
-
5.
公开(公告)号:US11947966B2
公开(公告)日:2024-04-02
申请号:US17498141
申请日:2021-10-11
Applicant: International Business Machines Corporation
Inventor: Wen Ji Huang , Xiao Ling Chen , Wen Bin Han , Sheng Shuang Li , Xiao Zhen Zhu
CPC classification number: G06F9/3017 , G06F8/41 , G06F9/44521 , G06F9/44552
Abstract: A computer-implemented method includes preprocessing, by a compiler, a plurality of macros in a computer program. Preprocessing a macro includes identifying a compile time condition associated with the macro. Preprocessing the macro further includes determining a current value of the compile time condition at the time of compiling a computer instruction and a previous value of the compile time condition. Preprocessing the macro further includes determining a set of computer instructions enclosed by the macro. The method further includes storing a macro information record that includes the compile time condition, the current value and the previous value of the compile time condition, and an identification of the set of computer instructions enclosed by the macro.
-
公开(公告)号:US11675575B2
公开(公告)日:2023-06-13
申请号:US17931678
申请日:2022-09-13
Applicant: International Business Machines Corporation
Inventor: Wen Ji Huang , Xiao Ling Chen , Sheng Shuang Li , Wen Bin Han , Jun Su
Abstract: A computer-implemented method includes receiving, by a processor, an updated version of a computer program that includes several source code changes. A compiler preprocesses the source code changes for a target computing platform. The preprocessing includes identifying a compile time condition associated with one or more computer instructions enclosed by a macro, determining a current value of the compile time condition at the time of compiling, and determining corresponding object code based on the current value. Further, a macro information record for the macro is generated that includes the compile time condition, the current value, and an identification of the computer instructions. Further, a linker preprocesses the source code changes. This preprocessing includes determining that the object code is not included in an executable file, and updating the macro information record to indicate that the macro is not included in the executable file.
-
公开(公告)号:US11288170B1
公开(公告)日:2022-03-29
申请号:US17247397
申请日:2020-12-10
Applicant: INTERNATIONAL BUSINESS MACHINES CORPORATION
Inventor: Xiao Ling Chen , Heng Wang , Tao Guan , Wen Ji Huang , Wen Bin Han , Sheng Shuang Li , Cheng Fang Wang
IPC: G06F11/36
Abstract: A computer receives a log file, where the log file comprises records associated with the instructions in a source code. The computer loads, using a debugger, the log file and the source code. The computer receives a loading address from the log file. The computer updates a debugging data format (DWARF) with the one or more records of the log file, where the DWARF is accessed using the loading address and comprises one or more data structure entries. The computer identifies a calling address from the log file and identifies the one or more data structure entries associated with the calling address.
-
-
-
-
-
-