正在加载图片...
Register and Address Descriptors Descriptors are necessary for variable load and store decision. ·Register descriptor For each available register Keeping track of the variable names whose current value is in that register -Initially,all register descriptors are empty ·Address descriptor For each program variable Keeping track of the location(s)where the current value of that variable can be found Stored in the symbol-table entry for that variable name. CS308 Compiler Theory 4Register and Address Descriptors • Descriptors are necessary for variable load and store decision. • Register descriptor – For each available register – Keeping track of the ariable names hose c rrent al e is in that register Keeping track of the variable names whose c urrent val u e is in that register – Initially, all register descriptors are empty • Address descri ptor – For each program variable – Keeping track of the location (s) where the current value of that variable can be found – S di h b l Store d in t he sym b ol-tabl f h i bl ble entry for t hat variable name. CS308 Compiler Theory 4
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有