How to test your code on a machine with big-endian architecture?

后端 未结 3 673
北荒
北荒 2020-12-15 18:08

Both ideone.com and codepad.org have Little-Endian architechtures.

I want to test my code on some machine with Big-Endian architechture (for example

3条回答
  •  無奈伤痛
    2020-12-15 18:40

    QEMU supports emulating several big-endian architectures. Note that some architectures support both endiannesses; some (Itanium, ARM) are primarily used as little-endian while others (PowerPC, MIPS) are primarily used as big-endian.

    Aurélien Jarno wrote some HOWTOs on installing Debian on an emulated MIPS or SPARC machine which should be a good start.

提交回复
热议问题