> > If I understood well, with modern processor an unpredicatable branch
> > (i.e. one with similar probability) is much more time-consuming that an
> > unnecessary function call.
>
> Yes, but the call needs to do memory allocation and a string copy, so it
> is not just the call.

I thought that UniqueString() goal was exactly to avoid the string copy...

> > ps. is there a way to see the assembly producted by a FPC function?
>
> Sure. Depending on your prefered asm style:
>
> fpc -Anasmelf -a -s filename.pas
> fpc -Agas -a -s filename.pas

Thanks!
I wonder if anyone has checked why Kylix version is faster comparing the 
assembler code.

I read the thread but I haven't studied well! ;)

Bye Uberto

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to