发明授权
- 专利标题: Compiler operation for handling conditional statements
- 专利标题(中): 用于处理条件语句的编译器操作
-
申请号: US12714236申请日: 2010-02-26
-
公开(公告)号: US09134977B2公开(公告)日: 2015-09-15
- 发明人: Jason I. H. Baron , Richard Henderson , Roland McGrath
- 申请人: Jason I. H. Baron , Richard Henderson , Roland McGrath
- 申请人地址: US NC Raleigh
- 专利权人: Red Hat, Inc.
- 当前专利权人: Red Hat, Inc.
- 当前专利权人地址: US NC Raleigh
- 代理机构: Lowenstein Sandler LLP
- 主分类号: G06F9/45
- IPC分类号: G06F9/45
摘要:
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.
公开/授权文献
- US20110214110A1 Compiler Mechanism for Handling Conditional Statements 公开/授权日:2011-09-01