How to tell machines endianism.

S

Steve Holden

KraftDiner said:
How can you tell if the host processor is a big or little endian
machine?

One possible way is to use the struct module to encode an integer value
in native and little-endian modes and see if the result comes out the
same or different.

regards
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,437
Messages
2,571,697
Members
48,796
Latest member
Greg L.
Top