Compiler Construction Lab Manual / Code Optimization LEX Program

Program Name

Write a Compiler Construction Program for Code Optimization LEX Program.
Theory
Code Optimization LEX Program.
Program Code


Saving: vi codeopt.c

Compiling and Running
cc codeopt.c
./a.out
Input
enter 2 c stmts
enter 1 stmt b=2
enter 2 stmts a=b+c


Output
optimized code is a=2+c


Home     Back