Dear Compiler Expert,
I have an assignment where I am required to implement a compiler for a simple C language. The assignment is divided in two parts: 1st generate the flex and bison files (which already did) and 2nd generate intermediate code and optimize it. I am stuck on the 2nd part. As I understand this, I need to build an Abstract Syntax Tree (AST) from the bison file and then optimize the code, but I don’t know how to do this and the time to research and study these matters is not enough. This is due on June 7th. Would you be able to help me with this? If so could you be so kind to send me the price for this? Let me know if you need any clarification.
Thanks & have a nice day
Btw, to save time and effort, I already have the code for another assignment very similar to mine. ([url removed, login to view]) But my bison file is different. If it is possible to “adapt” this code to work with my bison file, it would be a great time saver. I don’t need anything very complex, only the most simple as possible.