devcpp optimisation options

Started by
4 comments, last by swiftcoder 18 years, 4 months ago
Hi, I just curious as to what the various optimisation options (more optimisation and even more optimisations) under compiler setting actually turns on? Which of those options are safe to turn on? Is it similar to g++, i.e. optimisation level above O2 are not safe. thanks Shaobo Ho
Just because it is not nice, doesn''t mean it is not miraculous.
Advertisement
If you're using devcpp, then you're probably using the gnu toolchain. that includes g++.
Quote:Original post by smr
If you're using devcpp, then you're probably using the gnu toolchain. that includes g++.


So, what do the optimisation options in the devcpp gui actually turns on?
Just because it is not nice, doesn''t mean it is not miraculous.
Quote:Original post by shaobohou
So, what do the optimisation options in the devcpp gui actually turns on?


Open up the makefile that devcpp produces (should be in the same folder as your project), and find the line beginning with "CPP_FLAGS =", that should contain all the options sent to g++.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

Under Linux (so presumably Windows too with GNU tools) it's usually CXXFLAGS. CPPFLAGS is for the preprocessor.
Quote:Original post by ZQJ
Under Linux (so presumably Windows too with GNU tools) it's usually CXXFLAGS. CPPFLAGS is for the preprocessor.

Your right, sorry for the misinformation.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

This topic is closed to new replies.

Advertisement