big endian g++ compile option

Does anyone know how to compile big-endian in the little endian gnu environment. I am getting errors when I compile my code using the "-mbig" or "-mb" options.

$ g++ -o main.o -mbig main.cpp hello_world.cpp
cc1plus: error: invalid option `big'
cc1plus: error: invalid option `big'
cc1plus: error: invalid option `big'

My environment is cygwin with gnu g++.

Thanks
try -mbig-endian but it's not available for all platforms
Topic archived. No new replies allowed.