[issue17237] m68k aligns on 16bit boundaries.

Antoine Pitrou report at bugs.python.org
Tue Feb 19 23:00:04 CET 2013


Antoine Pitrou added the comment:

> We had a similar issue in the Linux kernel, where it used the lower
> two bits of an address for flags (urgh…) which could only be solved by
> using GCC’s __attribute__((__aligned__(4))) on the quantities in
> question, but that may or may not be the required case here, which is
> why I’m asking.

It is not required since, as you say, m68k only requires 2-byte
alignment. However, as Serhiy said, it may (or may not) be better for
performance. At this point, only people with access to a m68k machine or
VM (and motivated enough :-)) can do the necessary tests and propose a
way forward.

(but, performance notwithstanding, fixing the build should be a simple
matter of silencing the assert with an appropriate #if line)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17237>
_______________________________________


More information about the Python-bugs-list mailing list