According to this article, gcc uses several intermediate formats before generating the code. I read that the GIMPLE format uses three address codes, which seems to be the easiest intermediate language to use. But I need more detail, since I need to create a tool that can take intermediate code and insert some code into it before creating the final code.
To do this, I first need to know how I can even generate GIMPLE format code and save it in a file. Therefore, I am looking for some documents and examples. Also, if someone has worked with such things, can I know the complexity of this task, which is to insert some code into the intermediate code?
Metallicpriest
source share