Sign in to follow this  

Best Compiler Options

This topic is 4661 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i am currently reading NeHes OpenGL Tuts and coding some small OpenGL stuff, but when i compile my code or the code from the tuts i get an programm what is significant slower than the binarys that came with the tuts i tried it on MS VC++ 6.0 and DevCPP 4 i turned debuging information and exception handling off and tried some optimizations, but still its damm slow does anybody know how to configure one of the above compilers to make better code? ------------------------------------------------------------------------------- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan

Share this post


Link to post
Share on other sites
Are you sure to have Dev-C++ 4? Isn't it version 5 (4.9.9.2) ? If not then try downloading the latest versione of Dev-C++. For VC++ what optimization parameters did you set?

Share this post


Link to post
Share on other sites
thanks i try Dev Cpp 5 with these options

>For VC++ what optimization parameters did you set?
i optimized it to Maximize Speed but the performance gain was not that great

Share this post


Link to post
Share on other sites
Visual C++ 6.0 is quite outdated. I'd suggest upgrading soon (though you might want to wait for the 2005 ver to be released, you can use the beta of it now with some restrictions)

Share this post


Link to post
Share on other sites
VisualC++ 6 is very outdated, IIRC it has optimization setups up to pentium pro. But you should be able to see some differences (it depends by the code, but I guess at least 20-50%, perhaps more, that is not bad). If you hope to have a 10x speed incrase, the only way is to find some algorithms that can be rewritten with a better complexity order (like switching from InsertSort to QuickSort for 1000000 elements).
As an example, a test of my raytracer (not so optimized, 'cause I'm not a smart optimizer), need more or less 0.55s when not optimized, but only 0.2s when optimized (using Dev-C++ optimization options). A speedup of more than 2x. I'm pretty satisfied.

Share this post


Link to post
Share on other sites

This topic is 4661 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this