On Sat, 29 Nov 2008 16:04:54 +0100
Miguel Angel Marchuet <[EMAIL PROTECTED]> wrote:

> I think it's a little dangerous to use hard coded size of HB_ITEM

It's not a little, but VERY dangerous but written especially for 8 byte
alignment ;-)

BTW, many times ago it was said that an alignment of 4 is the best for
BCC (-a4 flag). But I still cannot prove it on real application. In my
case, using -a4 is much slower than -a8 although theoritically, -a4
should be faster.

Have you any comment on this matter?
--
Andi

> #ifndef __GNUC__
>    _asm {
>       mov edi, pDest;
>       mov esi, pSource;
>       mov ecx, 6;  /* sizeof( HB_ITEM ) = 24 bytes / 4 = 6 */
>       rep movsd;
>    }
> #else
>    memcpy( pDest, pSource, sizeof( HB_ITEM ) );
> #endif
> 
> is possible it changes, for example using -a4 or -a8 alignment parameter 
> at BCC compiler
> 
> Best regards
> Miguel Angel Marchuet
> 
> Andi Jahja escribió:
> > Hi Toninho,
> >
> > In my test, MSVC9 is a lot faster than BCC 6.10.
> >
> > BTW, can you please make a test as follows:
> >
> >   1. Run speedtst.exe with standard CVS fastitem.c
> >   2. Replace fastitem.c with the attached one and
> >      compare the speed.
> >
> > If you like the speed with the hacked fastitem.c, you may use it.
> > I've been using it since many years ago with no problem.
> > --
> > Andi
> >
> > On Fri, 28 Nov 2008 13:27:35 -0300
> > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> >
> >   
> >>> What I use:
> >>>
> >>>   Based on several considerations, I am now using MSVS 9.0 as my work 
> >>> horse,
> >>>   although the compiling speed is very slow compared to BCC 5.5.1.
> >>>   MSVS 9.0 (Express) is free, code speed is excellent, support/continuity 
> >>> is
> >>>   more or less obvious.
> >>>       
> >> Thanks for tests Andi.
> >>
> >> Do you have results for speedtest between bcc6.10 and msvc9. Wich is
> >> better please?
> >>
> >> Regards,
> >>
> >> Toninho.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
xHarbour-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to