Support for Wii's big-endian Starlet ARM

support for the ARM toolchain
Post Reply
veogo
Posts: 1
Joined: Sat Aug 18, 2018 4:56 am

Support for Wii's big-endian Starlet ARM

Post by veogo » Sat Aug 18, 2018 5:18 am

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?

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

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

Post by WinterMute » Sat Aug 25, 2018 6:45 pm

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests