[PATCH] Add 32-bit alignment minimum for globals in Thumb1 code

Tim Northover t.p.northover at gmail.com
Thu Apr 17 14:13:50 PDT 2014


  Hi Moritz,

  > Thumb1 already requests small types to be word-aligned.

  How does Thumb1 make this request? It's got LDRB and friends for accessing non-word aligned variables.

  I can imagine Cortex-M0 embedded developers getting a bit put out when suddenly all of their globals take 4 bytes of memory.

  Cheers.

  Tim.

http://reviews.llvm.org/D3411






More information about the cfe-commits mailing list