Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Giving a program priority briefly



On 11/06/07, Darren Cook <darren@example.com> wrote:

g++ -W -Wall -Wconversion -Wshadow -Werror  -lboost_serialization -O3
-march=i686 -fomit-frame-pointer -DNDEBUG -ffast-math -frename-registers
-DBOOST_SMART_ASSERT_MODE=0    -o ego_opt2  gtp.cpp main.cpp

Try this with -Os instead of -O3 and see what happens.

Steve, I think you know a little more about C++ compilers than I do;
any idea why g++ is ignoring the inline keyword to the detriment of
this program's performance?

Obviously, hand-optimisation is a time-honoured art, but on something
as basic as this, you'd think the compiler would get things right.

-Josh


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links