memcpy issue in ARMcc
You have your arm in little endian mode, which means it stores the less significant byte at the lower address, and "reads backwards" to human perception in a bytewise memory dump.

Look at a memory dump of the original value and you will see it is the same way.

There is actually no problem (unless at some point you are communicating with a big-endian system or via a protocol that uses that standard, in which case you have to byte-swap).