[Python-Dev] Re: Move support of legacy platforms/architectures outside Python

2021-02-22 Thread Jessica Clarke
Michał Górny wrote: > On Mon, 2021-02-22 at 19:27 +0000, Jessica Clarke wrote: > > Example: 16-bit m68k > > no, it's a 32bit platform with extra alignment requirements. > > Actually, fewer. Most architectures have alignof(x) == sizeof(x) for > > all the primitive

[Python-Dev] Re: Move support of legacy platforms/architectures outside Python

2021-02-22 Thread Jessica Clarke
Barry Scott wrote: > > On 22 Feb 2021, at 12:40, Michał Górny mgo...@gentoo.org wrote: > > I'm talking about 16-bit memory alignment which > > causes SIGBUS if it's > > not respected on m68k. > > I don't understand why you consider this to be a problem. After all, > > x86 has stronger (32-bit) ali

[Python-Dev] Re: Move support of legacy platforms/architectures outside Python

2021-02-22 Thread Jessica Clarke
> > Example: 16-bit m68k > no, it's a 32bit platform with extra alignment requirements. Actually, fewer. Most architectures have alignof(x) == sizeof(x) for all the primitive types, but m68k is more relaxed and caps alignof(x) at 2. This means that assert((p & sizeof(long)) == 0) is too strict,