This is explained in depth in the GCC manual. You can see the -options used when setting the optimization level. The GCC manual explains them all.
Thank you for your reply.
Could you tell me where the GCC manual is located? (It will be helpful if you post the URL).