Title :
Extension of Context Free Grammar for Intermediate Code and Peephole Optimization Rule Parsers
Author :
Bhatt, Chirag H. ; Bhadka, Harshad B.
Author_Institution :
Dept. of MCA, RK Univ., Rajkot, India
Abstract :
For the purpose of writing and constructing compilers, interpreters and optimizers the parsing of code is mandatory. The syntactic analysis of the input intermediate code into its component parts is known as parsing. And for the implementation of such parsers we need a Context Free Grammar (CFG) which helps to analyses the input code. This paper mainly focuses on extension of the CFG in an EBNF form which describes the parser for intermediate code and different peephole optimization rules. The peephole optimizer basically applies some strategies to perform optimization on the intermediate code based on optimization rules but for that it requires parsers which help to determine the intermediate code and optimization rules accordingly.
Keywords :
context-free grammars; optimising compilers; program interpreters; CFG; EBNF form; code parsing; compilers; context free grammar; intermediate code; interpreters; optimizers; peephole optimization rule parsers; syntactic analysis; Arrays; Assembly; Computer science; Context; Grammar; Optimization; Registers; Context Free Grammar (CFG); Extended BackusNaur Form (EBNF); Optimization Rules; Parser; Peephole Optimization;
Conference_Titel :
Advanced Computing & Communication Technologies (ACCT), 2015 Fifth International Conference on
Conference_Location :
Haryana
Print_ISBN :
978-1-4799-8487-9
DOI :
10.1109/ACCT.2015.79