On Wed, 27 May 2009, Mindaugas Kavaliauskas wrote:
Hi,
> Your exe is still a little bit smaller. Maybe just because of different GT.
It also effect the size but not only. See below.
> Why I do need to stuff GTSTD with keyboard events, to make application
> work?
Probably there is sth wrong with this code:
#elif defined( HB_IO_WIN )
if( !pGTSTD->fStdinConsole ||
WaitForSingleObject( ( HANDLE ) hb_fsGetOsHandle( pGTSTD->hStdin ), 0
) == 0x0000 )
{
BYTE bChar;
if( hb_fsRead( pGTSTD->hStdin, &bChar, 1 ) == 1 )
ch = pGTSTD->keyTransTbl[ bChar ];
}
#elif defined( __WATCOMC__ )
inside hb_gt_std_ReadKey(). I thought it was working but looks that I was
wrong. If you can look at it fix it using real MS-Windows then it will be
nice.
> Here are new times of all tests with //gtnul:
> speedtst_bcc_gc2.exe 67.47 / 70.45
> speedtst_gcc_gc2_strip.exe 55.80 / 56.66
> speedtst_bcc_gc3.exe 68.56 / 69.88 (old .exe, no -l option)
> spd-bcc-gc2.exe 64.08 / 64.83
> spd-mgw-gc2.exe 52.78 / 53.27
> spd-mgw-gc2-Os.exe 62.73 / 63.41
>
> One more time:
>
> speedtst_bcc_gc2.exe 64.97 / 68.08
> speedtst_gcc_gc2_strip.exe 55.44 / 56.44
> speedtst_bcc_gc3.exe 68.13 / 71.20 (old .exe, no -l option)
> spd-bcc-gc2.exe 63.72 / 64.20
> spd-mgw-gc2.exe 52.31 / 54.61
> spd-mgw-gc2-Os.exe 63.47 / 64.13
Thank you for the results.
>
> One of the strangest thing is that BCC .exe cross-compiled under Wine is a
> little faster, than compiled on Windows (both running on Windows).
I forgot about one switch I have in my local BCC settings. I have in
HB_USER_CFLAGS -a4 and this can be the source of difference. With -a4
BCC binaries consumes less memory (the item size is 16 instead 24) and
are little bit faster.
> BCC / GCC speed difference much smaller on Windows, about 16%.
Yes and please note the -Os MinGW binaries are faster then BCC ones.
They were slower in my tests. It can caused also by different CPU.
I'm using AMD Phenom(tm) 8450 Triple-Core Processor. If your CPU has
less cache memory then mine then smaller binaries will be preferred
and this can explain such results.
Tomorrow I'll try to make some tests with Win-XP machine on some
dual-core AMD CPU.
best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour