Reputation:
I want to test my c code for big endian on Windows (On x86-64). How can we do this?
Upvotes: 2
Views: 2603
Reputation: 4788
Assuming that you don't have any actual big-endian hardware to hand, your best bet is to use a virtual machine such as QEMU to emulate a big-endian architecture such as SPARC or PowerPC.
You'll then need to install a suitable operating system on your VM - perhaps Debian would suit your needs.
Upvotes: 6