[RTEMS Project] #4013: Using the size of an object to deduce the alignment is broken on some architectures

RTEMS trac trac at rtems.org
Mon Jun 29 06:00:11 UTC 2020


#4013: Using the size of an object to deduce the alignment is broken on some
architectures
-----------------------------+------------------------------
 Reporter:  Sebastian Huber  |       Owner:  Sebastian Huber
     Type:  defect           |      Status:  assigned
 Priority:  normal           |   Milestone:  5.2
Component:  score            |     Version:  5
 Severity:  normal           |  Resolution:
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+------------------------------

Comment (by Chris Johns):

 Replying to [comment:4 Sebastian Huber]:
 > Using the RTEMS_ALIGNED() would work, but the real problem is that RTEMS
 demands higher alignment requirements than the architecture.

 Yes and that is a good thing. The alignment the architecture can support
 does not mean the performance is optimal when that alignment is used. On a
 `m68k` if the stack pointer is not aligned to a long work (`4`) the
 performance suffers.

 RTEMS has always place extra constraints on architectures to extract the
 best performance possible.

--
Ticket URL: <http://devel.rtems.org/ticket/4013#comment:5>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list