[fpc-devel] Re: Faster Implementation for IntToStr
Dimitri Smits
smitco at telenet.be
Mon Sep 3 18:17:11 CEST 2012
----- Oorspronkelijk e-mail -----
> Van: "Graeme Geldenhuys" <graeme at geldenhuys.co.uk>
> Aan: fpc-devel at lists.freepascal.org
> Verzonden: Maandag 3 september 2012 16:06:14
> Onderwerp: Re: [fpc-devel] Re: Faster Implementation for IntToStr
>
> On 03/09/12 14:05, Mark Morgan Lloyd wrote:
> >
> > Except that modifying the compiler to generate highly-optimised
> > code for
> > specific high-level tasks is probably more work than having a
> > fragment
> > of assembler that needs to be written once per target CPU.
>
>
> And writing the assembler for that one task fixes ONE problem, but
> still
> needs to be rewritten for all other target CPU's. Improving the
> assembler generated by FPC improves many tasks at once.
wouldn't the different target CPU's have their own optimisations then, so in effect you still have as much tasks as a per cpu implementation?
granted, it could be useful and speedup other code on the go as well, but like you said: optimisation is a difficult problem. There is not always a one-size-fits-all, and it usually is a compromise leaning towards generability of applicability or pure speed.
kind regards,
Dimitri Smits
More information about the fpc-devel
mailing list