Re: [fpc-devel] i386-linux switched to a 16 byte aligned stack

2019-09-16 Thread Henry Vermaak
On Mon, 16 Sep 2019 at 14:58, Ben Grasset wrote: > On Sun, Sep 15, 2019 at 1:36 PM Florian Klämpfl > wrote: >> In r43005 to 43014 I committed a couple of patches so FPC generates >> stack frames aligned to 16 byte boundaries on i386-linux > > Good change! Means, for example, the long-standing

Re: [fpc-devel] i386-linux switched to a 16 byte aligned stack

2019-09-16 Thread Ben Grasset
On Sun, Sep 15, 2019 at 1:36 PM Florian Klämpfl wrote: > In r43005 to 43014 I committed a couple of patches so FPC generates > stack frames aligned to 16 byte boundaries on i386-linux > Good change! Means, for example, the long-standing issues with popular libraries like SDL2 on 32-bit Linux

Re: [fpc-devel] i386-linux switched to a 16 byte aligned stack

2019-09-16 Thread J. Gareth Moreton
Ah whoops, misunderstood.  Only for i386-linux, not i386-win32 as well.  Would there be benefits to aligning the stack on that platform as well though? Gareth aka. Kit On 16/09/2019 13:32, J. Gareth Moreton wrote: It's a useful feature as far as hand-written and generated assembly language

Re: [fpc-devel] i386-linux switched to a 16 byte aligned stack

2019-09-16 Thread J. Gareth Moreton
It's a useful feature as far as hand-written and generated assembly language is concerned.  The Intel SIMD instruction sets work far better with aligned memory (e.g. you can use MOVAPS instead of MOVUPS, the former being faster on older CPUs but triggering a segmentation fault if the memory is