Re: Alignment error

2010-09-27 Thread Nick Clifton
Hi Thomas, [Note: You sent this to g...@sourceware.org but the correct address to use is g...@gcc.gnu.org]. int* pInt = (int*)0x10002004; //word-aligned char* pChar = (char* )0x10003005; //non-word-aligned *pInt = 0x34; *pChar = 'A'; The assembly mnemonic

Alignment error

2010-09-27 Thread Thomas Joseph
Hi, This is regarding to the alignment error generated by GDB when compiled in same GCC with u-boot makefile. I wrote a small code consisting of following statements for the ARM platform int* pInt = (int*)0x10002004; //word-aligned char* pChar = (char* )0x10003005; //non