Using the Optimizer compiler flags

We'll cover the following

There are a number of levels of “optimization” that you can request from the gcc compiler at compile time. You can read about them here. Turning on the optimizer flags asks the compiler to attempt to improve the performance (speed) of the code, typically at the expense of compilation time, (sometimes code size), and (usually) debugging ease.

If you type this:

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy