Compiler operation for handling conditional statements
    1.
    发明授权
    Compiler operation for handling conditional statements 有权
    用于处理条件语句的编译器操作

    公开(公告)号:US09134977B2

    公开(公告)日:2015-09-15

    申请号:US12714236

    申请日:2010-02-26

    IPC分类号: G06F9/45

    CPC分类号: G06F8/443

    摘要: A computer-implemented method and apparatus for optimizing conditional code by identifying conditional code in a source code, adding a no-operation instruction to an executable code corresponding to the source code in place of the conditional code, adding an entry to a table to pair the no-operation instruction to the conditional code, compiling the conditional code, and storing the compiled conditional code separate from the executable code. A computer-implemented method and apparatus to optimize conditional code by loading an executable code to be executed, checking whether conditional code associated with the executable code is enabled for execution, looking up a location of a no-operation instruction in a table and a location of a compiled conditional code in the table, and replacing the no-operation instruction in the executable code with the compiled conditional code.

    摘要翻译: 一种用于通过识别源代码中的条件代码来优化条件代码的计算机实现的方法和装置,将不操作指令添加到与源代码相对应的可执行代码以代替条件代码,将条目添加到表中 对条件代码的无操作指令,编译条件代码,以及将编译的条件代码与可执行代码分开存储。 一种通过加载要执行的可执行代码来优化条件代码的计算机实现的方法和装置,检查与可执行代码相关联的条件代码是否被执行,查找表中的无操作指令的位置和位置 的编译条件代码,并用可编译的条件代码替换可执行代码中的无操作指令。