首页 | 本学科首页   官方微博 | 高级检索  
     


On the number of registers needed to evaluate arithmetic expressions
Authors:Victor Schneider
Affiliation:(1) Computer Sciences Dept., Purdue University, 47907 Lafayette, Indiana, USA
Abstract:The question of how many temporary storage registers are needed to evaluate compiled arithmetic and masking expressions is discussed. It is assumed that any combination of left-to-right, right-to-left, top-to-bottom, and bottom-to-top techniques may be used to evaluate an expression, but that no factoring or re-arranging of the expression may occur. On this basis, the maximum number of registers needed to evaluate nonparenthesized expressions isN+1, withN the number of dyadic operator precedence levels. For parenthesized expressions with a maximum ofK nested parenthetical subexpressions, the maximum number of registers needed is (K+1)N+1.
Keywords:arithmetic expression  compiler design  dependency tree  programming  storage minimization
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号