Page 1 of 1

Support for Wii's big-endian Starlet ARM

Posted: Sat Aug 18, 2018 5:18 am
by veogo
I'm trying to compile a modified version of Nintendont, including an extra third-party library. As I understand it, Nintendont's kernel runs on the Wii's Starlet ARM processor and so uses devkitARM for compilation. But this library's autotools-based configuration script detects the architecture as little-endian, due to the preprocessor macro BYTE_ORDER being set to LITTLE_ENDIAN. The Starlet is big-endian, right? Is devkitARM even intended to support the Starlet? Am I just misunderstanding something?

Re: Support for Wii's big-endian Starlet ARM

Posted: Sat Aug 25, 2018 6:45 pm
by WinterMute
devkitARM defaults to producing little endian code since it's primarily designed to target little endian hardware (GBA, DS, 3DS) - you need to compile with -mbig-endian to produce big endian code which will change __BYTE_ORDER__ appropriately.