I have gone through many reference documents about how a GCC compiler optimizes program. But I am not sure how actually a programmer request GCC attempt to optimize a program. Plz help answering this question and also if any reference links would be helpful. Thanks!!
closed as off topic by Charles Salvia, Yusubov, MichaelT, Kilian Foth, gnat Feb 11 at 7:37
Questions on Programmers Stack Exchange are expected to relate to software development within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.
How you control GCC (or any compiler) depends on how you're invoking it. If you're using it directly from the command line, you simply include the appropriate option(s) when you run the program:
If you're using