Originale 134 Posted July 22, 2014 Share Posted July 22, 2014 Hi everyone For those using gcc48 and g+ +48 I just ask that you optimize use? I use these CFLAGS CC = g++48 CFLAGS = -Wall -O3 -std=c++11 -g -pipe -mtune=i686 -fno-rtti -fno-exceptions -pthread -D_THREAD_SAFE Link to comment Share on other sites More sharing options...
Active Member ATAG 310 Posted July 22, 2014 Active Member Share Posted July 22, 2014 Change -mtune to the target cpu type. https://gcc.gnu.org/onlinedocs/gcc-4.8.3/gcc/i386-and-x86-64-Options.html#i386-and-x86-64-Options Eg. with enabled ssse3 program will run 10% faster (if the CPU supports)... 1 Link to comment Share on other sites More sharing options...
Originale 134 Posted July 22, 2014 Author Share Posted July 22, 2014 Thank you for your reply ATAG I would have done like this -mtune=core2 ? My Proc: core 2 duo E8500 Edit: I must put the CFLAGS equal in all serv? Link to comment Share on other sites More sharing options...
Active Member ATAG 310 Posted July 22, 2014 Active Member Share Posted July 22, 2014 If you compile on the target machine, use -mtune=native it will turn on all CPU flags, that your CPU supports. Link to comment Share on other sites More sharing options...
Originale 134 Posted July 22, 2014 Author Share Posted July 22, 2014 I also saw a post you made avai or you talk to remove-g and-wall I save a lot on the size of the file Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now