• Problem with alignment of variable in memory
    I'm using an AT91SAM7 uC and have inherited some C code which is giving me fits. When I run this code I get a data abort error. I've tracked down the offending line of code, and it appears to be caused...
  • C++: Aligned byte fields not possible in classes?
    Hi, if I want to define a 4byte aligned char array in C, then I typically would declare: __align(4) char acBuf[20]; In C++, inside a class, this unfortunately fails (Error #328: invalid storage...
  • How to align a local variable at word-aligned address
    Hi Does anyone know how to force a local variable to be aligned at word address? The DMA transfer needs word-aligned address. Thanks. Joseph
  • Global variable alignment
    Note: This was originally posted on 13th January 2011 at http://forums.arm.com Hi, I am working with RealView Compilation Tools v2.1.  I need to align a static global variable on a 16-byte boundary. ...
  • Realview aligning variables
    Note: This was originally posted on 22nd August 2011 at http://forums.arm.com Hi In Keil RealView is there some compiler or linker command switch that will ensure that all declared variables will be aligned...