On Wed, 10 Mar 2010, Szak�ts Viktor wrote:

Hi,

> Is it also true that C++ mode enhances speed for 
> x86 code? I see it slightly does for x86_64.

I do not know. In general C++ mode is a little bit more restrictive then
pure C so it's possible that some compilers which want to keep strict C
standards do not make some optimizations which can be safely enabled in
C++ mode. This is the only reason of potential differences because C++ RTL
usually is a little bit more heavy and slower.
I remember that in the past we have in the source code some notes about
MSVC "bugs" with workarounds for them. In fact it was examples of code
which interacts with optimizer and in C++ mode may not work so the problem
was in our code not in MSVC. For very long time we were using MSVC in C++
mode only so I cannot say if MS enabled all possible optimization also for
C mode or it was exploited in C++ mode only.
It's interesting to check if there are any speed differences in MSVC C and
C++ builds.
Can you check it?

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to