This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
expression templates (ET) and optimizer for C++
- To: GCC Mailing List <gcc at gcc dot gnu dot org>
- Subject: expression templates (ET) and optimizer for C++
- From: Olaf Petzold <opetzold at wit dot regiocom dot net>
- Date: Mon, 27 Aug 2001 11:21:21 +0200
Hello,
on weekend I build the 3.0.1 release with Kurt's inlining heuristicpatch. After
compiling the ray.cc example from blitz and studying the produced asm-x86 code:
it looks terrible. Some of the (very small!) static inline member functions are
not inlined on all optimizing levels. The gcc-2.96 from mandrake dist produced
better results. I don't attached code here (only if one is more interested
in). The code shows (I'm not an guru) many indirekt adressing and, as
montioned before, not inlined member functions like
template<class T>
struct foo {
static inline double apply(T x) { return std::sqrt(x); }
};
The inline-limit was tested up to 1500, which doesn't changed anything. Are
there more experience fon ET here ?
Regards
Olaf