News for hackers. Stuff that matters.
Re:Web Assembly Working Group Charter Approved by wahern on Monday August 07, 2017 @10:46PM (#14953485)
Apparently not. From "ARM Architecture Reference Manual ARMv8 for ARMv8-A architecture profile",

  Apart from Load-Exclusive, Store-Exclusive, Load-Acquire,
  and Store-Release, addresses can have any alignment unless
  strict alignment checking is enabled....

  -- Section C3.2 Loads and Stores, page C3-160.


  The Load-Exclusive/Store-Exclusive instructions other than
  Load-Exclusive pair and Store-Exclusive pair require natural
  alignment, and an unaligned address generates an Alignment
  fault. Memory accesses generated by Load-Exclusive pair or
  Store-Exclusive pair instructions must be aligned to the
  size of the pair, otherwise the access generates an
  Alignment fault. 

  -- Section C3.2.6 Load-Exclusive/Store-Exclusive


  The Load-Acquire/Store-Release instructions other than Load
  Acquire pair and Store-Release pair require natural
  alignment, and an unaligned address generates an Alignment
  fault. Memory accesses generated by Load-Acquire pair or
  Store-Release pair instructions must be aligned to the size
  of the pair, otherwise the access generates an Alignment
  fault.

  -- Section C3.2.7 Load-Acquire/Store-Release


  The LoadLOAcquire/StoreLORelease instructions require
  natural alignment, and an unaligned address generates an
  Alignment fault.

  -- Source C3.2.8 LoadLOAcquire/StoreLORelease


  The CAS and CASP instructions require natural alignment, and
  an unaligned address generates an Alignment fault.

  -- Section 3.2.12 Compare and Swap, page C3-172


  The LD<OP> and ST<OP> instructions require natural
  alignment, and an unaligned address generates an Alignment
  fault.

  -- Section C3.2.13 Atomic memory operations, page C3-173.


  The SWP instructions require natural alignment, and an
  unaligned address generates an Alignment fault.

  -- Section C3.2.14 Swap, page C3-175

I've only ever dabbled in assembly programming, but the ability of x86 to do atomic operations across cache lines is, AFAIU, rather unique. That Intel and AMD engineers are able to accomplish it relatively performantly is an incredible achievement. But it's not a handicap anybody else wishes to adopt and then compensate for.

There are no comments on this comment yet.