Personal tools
You are here: Home Community Tips Tips for building ecell3

Tips for building ecell3

  • If your processor is SSE2-enabled, (for example, Pentium-4, Xeon, newer Celeron, Athlon-xp, Athlon-mp, or Athlon-4) and your compiler is gcc-3.2 or newer, configuring the system with the following procedure may result in considerably faster binaries.
CXXFLAGS="-O2 -mfpmath=sse -msse2" ./configure

It should run on any CPUs that support SSE2 instructions. This is the default on the x86-64 architecture.

  • In addition, specifying the target architecture like -march=pentium4 or -march=athlon-mp will even optimize the code, but can limit portability of the code.
  • On MinGW (MS Windows), when you compile other libraries such as gsl, which has configure script, you can also use the following flags during configure:
CXXFLAGS="-O2 -mfpmath=sse -msse2 -fno-rtti" CFLAGS="-O2 -mfpmath=sse -msse2" LDFLAGS="-Wl,-s" ./configure --prefix=/usr
  • For boost, use the following line:

 bjam "-sTOOLS=mingw" "-sBUILD=release <cxxflags>-O3/<cxxflags>-mfpmath=sse/<cxxflags>-msse2/<linkflags>-Wl,-s"

  • -Wl,-s is used for stripping and results in much smaller libraries (upto almost 60-70% smaller)
Document Actions