US 11,947,966 B2
Identifying computer instructions enclosed by macros and conflicting macros at build time
Wen Ji Huang, Beijing (CN); Xiao Ling Chen, Beijing (CN); Wen Bin Han, Beijing (CN); Sheng Shuang Li, Beijing (CN); and Xiao Zhen Zhu, Beijing (CN)
Assigned to International Business Machines Corporation, Armonk, NY (US)
Filed by International Business Machines Corporation, Armonk, NY (US)
Filed on Oct. 11, 2021, as Appl. No. 17/498,141.
Prior Publication US 2023/0115334 A1, Apr. 13, 2023
Int. Cl. G06F 9/30 (2018.01); G06F 8/41 (2018.01); G06F 9/445 (2018.01)
CPC G06F 9/3017 (2013.01) [G06F 8/41 (2013.01); G06F 9/44521 (2013.01); G06F 9/44552 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A computer-implemented method comprising:
preprocessing, by a compiler, a plurality of macros in a computer program, wherein preprocessing a macro comprises:
identifying a compile time condition associated with the macro, wherein the compile time condition indicates a combination type of hardware and software of a target computing platform of the computer program;
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;
determining a set of computer instructions enclosed by the macro; and
storing a macro information record that includes the compile time condition, the current value and the previous value of the compile time condition, a name of a source code file of the computer program that includes the macro, and an identification of the set of computer instructions enclosed by the macro.