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!!
Tell me more
×
Computer Science Stack Exchange is a question and answer site for
students, researchers and practitioners of computer science. It's 100% free, no registration required.
closed as off topic by Yuval Filmus, vonbrand, Nicholas Mancuso, Peter Shor, Sasho Nikolov Feb 11 at 5:15
Questions on Computer Science Stack Exchange are expected to relate to computer science within the scope defined in the FAQ. 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 closed questions here.
|
Use the flags |
|||
|
|
-O2, except for very specific cases, this should give good enough code. – vonbrand Feb 11 at 4:34