发明申请
US20060200809A1 Transforming code to expose glacial constants to a compiler 失效
转换代码以将冰川常数暴露给编译器

  • 专利标题: Transforming code to expose glacial constants to a compiler
  • 专利标题(中): 转换代码以将冰川常数暴露给编译器
  • 申请号: US11071026
    申请日: 2005-03-03
  • 公开(公告)号: US20060200809A1
    公开(公告)日: 2006-09-07
  • 发明人: Nikola GrcevskiMark Stoodley
  • 申请人: Nikola GrcevskiMark Stoodley
  • 主分类号: G06F9/45
  • IPC分类号: G06F9/45
Transforming code to expose glacial constants to a compiler
摘要:
Techniques for causing a compiler to organize code pertaining to data that is not constant, but that is unlikely to change except in relatively infrequent situations, in an improved manner. A class containing data that may have more than one value, but which will have a particular value in the typical case, is now split into two parts, a first class which uses the more-likely data value as a constant, and a second class (designed as a subclass of the first class) that uses the data value as a variable capable of having either the more-likely value or other, less-likely values. The compiler generates assembly code comprising instructions pertaining to the more-likely data value, and also generates assembly code capable of processing the less-likely data values. This latter code, however, is initially unreachable. The compiler-generated assembly code will be programmatically patched, at run time, if any of the less-likely data values occur, thereby dynamically making the code reachable. Once the initially-unreachable code becomes reachable, it will be used thereafter (regardless of the setting of the data value).
公开/授权文献
信息查询
0/0