[Gecode] DllExport not yet okay on Windows...
Christian Schulte
schulte at imit.kth.se
Sun May 9 23:01:39 CEST 2004
Dear all,
the DllExport swamp has not yet driep up... While it works like a charm for
MSVC, the solution is not yet good enough for gcc.
When declaring an entire class to be exported, for MSVC it means that even
if a _inline_ member function is exported, MSVC will use the inline version.
This is not the case for gcc, it chooses to always do a call.
Impact for performance is desastrous: The runtime increases by a factor of
six (clear, no inlining!).
Easy to fix (but tedious): instrument all class members individously and
spare inline functions...
I'll try and come back to you whether this works.
Christian
--
Christian Schulte, http://www.imit.kth.se/~schulte/
More information about the gecode-users
mailing list