Reputation: 27230
see i have written one program for big endian now i dont have big endian machine but i want to check whether my program will works correctly or not on big endian so how can i check that on my little endian pc.?
Is there any online virtual big-endian compiler ?
note : i have googled about this but did not get anything.
Upvotes: 6
Views: 2846
Reputation: 2371
Qemu is useful as an emulator/virtualizer, i.e. for running the program, but you'll need something to compile it in the first place.
Once you have chosen a big-endian architecture supported by qemu, for example PowerPC, you'll need a cross-compiler which runs on your PC but produces binaries for this architecture (e.g. PowerPC).
If you're very lucky, your distribution contains some binaries. However, in most cases, you might be forced to compile binutils
, glibc
and gcc
yourself.
Upvotes: 4