On Wed Nov 27 13:07:31 EST 2013, skip.tavakkolian@gmail.com wrote:because it's big endian. what you're doing there is
> why is mips different (erik's version)?
>
> supermic% ./8.out
> 78780000
> mikro% ./v.out
> 7878
> rpi% ./5.out
> 78780000
>
putting bytes in specific positions. in this case you have
bytes (in hex):
0 0 78 78
on a little endian machine this is 0x78780000 and on a
big-endian machine this is 0x00007878.
- erik