发明申请
- 专利标题: COMPILER REGISTER ALLOCATION AND COMPILATION
- 专利标题(中): 编译器注册和编译
-
申请号: US11927355申请日: 2007-10-29
-
公开(公告)号: US20080134151A1公开(公告)日: 2008-06-05
- 发明人: Akira KOSEKI , Hideaki Komatsu
- 申请人: Akira KOSEKI , Hideaki Komatsu
- 申请人地址: US NY Armonk
- 专利权人: INTERNATIONAL BUSINESS MACHINES CORPORATION
- 当前专利权人: INTERNATIONAL BUSINESS MACHINES CORPORATION
- 当前专利权人地址: US NY Armonk
- 优先权: JP2002171856 20021206
- 主分类号: G06F9/44
- IPC分类号: G06F9/44
摘要:
Assigns suitable registers to a plurality of variables. A compiler converts a source program into instructions for a processor having: a simultaneously used variable acquisition section which obtains, with respect to each of a plurality of variables used in the source program, some of the other variables used simultaneously with the variable; an allocation sequence generation section which generates a plurality of allocation sequences between the plurality of variables to allocate each variable to one of the plurality of registers different from those to which some of the other variables used simultaneously with the variable are allocated; an allocation priority acquisition section which obtains allocation priorities indicating to which one of the plurality of registers each variable is allocated with priority; and a register allocation section which allocates the variables to registers in accordance with an allocation sequence selected on the basis of the allocation priorities.
公开/授权文献
- US08104026B2 Compiler register allocation and compilation 公开/授权日:2012-01-24
信息查询