Re: [fpc-devel] Incompatible assignments but no compile error (char array and shortstring)

2022-04-17 Thread Sven Barth via fpc-devel
Am 16.04.2022 um 22:35 schrieb Wayne Sherman via fpc-devel: Tested with fpc 3.3.1 trunk (as of 2022-Mar-12) and 3.2.2 stable. Ubuntu 20.04 64-bit Good compile time error checking is one of the wonderful things about Pascal. But some char array and shortstring assignments which are not size comp

Re: [fpc-devel] Thoughts: Make FillChar etc. an intrinsic for specialised performance potential

2022-04-17 Thread J. Gareth Moreton via fpc-devel
On 17/04/2022 09:59, Sven Barth via fpc-devel wrote: But we should have a general mechanism for that, not something that just handles FillChar. Regards, Sven I do agree - I don't like hard-coded literals like that for handling special cases. Gareth aka. Kit -- This email has been checked

Re: [fpc-devel] Thoughts: Make FillChar etc. an intrinsic for specialised performance potential

2022-04-17 Thread Sven Barth via fpc-devel
Florian Klämpfl via fpc-devel schrieb am Sa., 16. Apr. 2022, 21:00: > > > > Am 16.04.2022 um 01:26 schrieb J. Gareth Moreton via fpc-devel < > fpc-devel@lists.freepascal.org>: > > > > Hi everyone, > > > > This is something that sprung to mind when thinking about code speed and > the like, and one

Re: [fpc-devel] x86: Efficiency of opposing CMOVs

2022-04-17 Thread J. Gareth Moreton via fpc-devel
In the meantime, here's the new CMOV improvements.  This is another big one for the peephole optimizer on x86, although largely confined to just a few methods: https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/198 Gareth aka. Kit -- This email has been checked for viruses by Avas