Codeblocks compilation automatic append Optimization Options

Source: Internet
Author: User

I encountered a very hard problem in my thesis. The same function, one with no statistics, and the other with some statistical statements, was found during performance comparison, the time for adding a statistic is usually shorter than the time for not adding it !! This is very unscientific .. In addition, the performance of the AC guy is also very strange, it is better than ACBM, It is not scientific. In the sameCodeIt is completely normal to compile and run on the brother's machine!

After being depressed for a long time, I finally found the reason for my happiness !!!


The post to solve the problem is about codeblocks's automatic append compilation options.


It turns out that the project automatically adds the-O2 and-s optimization options, but this option is not set in settings-> compiler, so it has not been found before.

Right-click the project, build options-> compiler flags, and deselect the optimize XX option. deselect the strip all symbols from binary check box. Then, I am not very clear about how it affects me.ProgramRunning.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.