发明名称 Method of transforming variable loops into constant loops
摘要 A system and method for processing a variable looping statement into a constant looping statement to enable loop unrolling. A lower bound and an upper bound of the loop index within the variable looping statement are determined. A constant looping statement is then formed using the lower bound and upper bound to define a range over which the loop index varies within the constant looping statement. The constant looping statement further includes a conditional statement that reflects conditions in the initial expression and/or the exit expression of the variable looping statement. The conditional statement controls execution of the body of the generated constant looping statement, which includes the body from the original variable looping statement. Loop unrolling may then be performed on the generated constant looping statement.
申请公布号 US6988266(B2) 申请公布日期 2006.01.17
申请号 US20010851018 申请日期 2001.05.08
申请人 SUN MICROSYSTEMS, INC. 发明人 LAM WILLIAM K.;ALLISON DAVID S.
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址