TY - JOUR
T1 - Experience in fine-tuning a compiler generated from an attribute grammar
AU - Wu, Pei Chi
AU - Wang, Feng-Jian
PY - 1997/2/1
Y1 - 1997/2/1
N2 - Compilers are one of the tools that are used daily by software developers. Generating efficient compilers is thus important for compiler generators such as attribute grammar (AG) systems. This paper presents our experience at fine-tuning a compiler generated from an AG. The techniques adopted for fine-tuning include memory management, hash symbol tables, and function inline. These techniques have been widely used in the development of hand-coded compilers, but are rarely applied in AG generators. The speedup obtained in the attribute evaluation is 2.80, and the overall speedup is 1.73. These results indicate that the compilers generated from AGs can be improved considerably with the above techniques. They also indicate a new direction in optimization techniques for generating compilers from AGs.
AB - Compilers are one of the tools that are used daily by software developers. Generating efficient compilers is thus important for compiler generators such as attribute grammar (AG) systems. This paper presents our experience at fine-tuning a compiler generated from an AG. The techniques adopted for fine-tuning include memory management, hash symbol tables, and function inline. These techniques have been widely used in the development of hand-coded compilers, but are rarely applied in AG generators. The speedup obtained in the attribute evaluation is 2.80, and the overall speedup is 1.73. These results indicate that the compilers generated from AGs can be improved considerably with the above techniques. They also indicate a new direction in optimization techniques for generating compilers from AGs.
UR - http://www.scopus.com/inward/record.url?scp=0031070108&partnerID=8YFLogxK
M3 - Article
AN - SCOPUS:0031070108
SN - 1023-4462
VL - 4
SP - 75
EP - 82
JO - Journal of the Chinese Institute of Electrical Engineering, Transactions of the Chinese Institute of Engineers, Series E/Chung KuoTien Chi Kung Chieng Hsueh K'an
JF - Journal of the Chinese Institute of Electrical Engineering, Transactions of the Chinese Institute of Engineers, Series E/Chung KuoTien Chi Kung Chieng Hsueh K'an
IS - 1
ER -