Invention Grant
- Patent Title: Checking source code validity at time of code update
-
Application No.: US17931678Application Date: 2022-09-13
-
Publication No.: US11675575B2Publication Date: 2023-06-13
- Inventor: Wen Ji Huang , Xiao Ling Chen , Sheng Shuang Li , Wen Bin Han , Jun Su
- Applicant: International Business Machines Corporation
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Cantor Colburn LLP
- Agent Teddi Maranzano
- Main IPC: G06F8/41
- IPC: G06F8/41 ; G06F8/30

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.
Public/Granted literature
- US20230114540A1 CHECKING SOURCE CODE VALIDITY AT TIME OF CODE UPDATE Public/Granted day:2023-04-13
Information query