There are a lot of optimization settings starting with tree. Some are:
-ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-ter
What’s special about those flags?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They all work with the tree representation of your source code.
Not sure exactly how GCC does it, but in general a compiler will parse your code and turn it into an abstract syntax tree, parse tree or similar structure. These optimizations work on that tree. Later, the tree will be used to generate the machine code.