Is the Hack CPU little endian or big endian?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Is the Hack CPU little endian or big endian?

LBSC
Self contained question.
Reply | Threaded
Open this post in threaded view
|

Re: Is the Hack CPU little endian or big endian?

cadet1620
Administrator
Endianess refers to the order of 8-bit data (bytes) within wider data (16-or 32-bit) stored in memory.

Because there is no provision for double-word memory access, there is no endianess concept for the Hack computer.

It is possible to write programs that manipulate wider data, for instance 32-bit integers, but the programmer will need to decide how they want to store that data in memory.

--Mark

Reply | Threaded
Open this post in threaded view
|

Re: Is the Hack CPU little endian or big endian?

LBSC
I see, thanks!