IPod Toolchain

From iPodLinux

Jump to: navigation, search
Note: This is a toolchain for compiling programs for the iPod on the iPod. For compiling programs for the iPod but on a computer, see Toolchain.


This is an arm-elf cross arm-elf toolchain (build stuff on the iPod to run on the iPod) as an exercise in seeing-if-it-could-be-done. Even if it works, actually editing and compiling the programs will take prohibitive amounts of time. Still, it's a cool party trick :-)


Download link: Mirror (Mirror uploaded with permission by Josh)

The file is 44MB .tar.gz and expands to 150MB, which means you'll either have to choose a large-enough Linux partition size when installing iPodLinux to hold both the toolchain and userland, or create a new partition to hold it. Note that you will be unable to extract the toolchain through Windows; you must either use Linux or Mac OSX.


You can then test the toolchain by creating a simple "Hello World" program as "/hello.c" (note that one already exists in the toolchain download):

int main() {
    printf ("Hello, World!\n");
    return 0;
}


You can then compile the program by running a script like "/compile.sh" through iPodLinux (you'll have to create this file with PodWrite or execute the lines via Terminal):

#!/bin/sh
cd /
gcc -Wl,-elf2flt -v -o hello hello.c


Have some fun.

Josh 01:00, 10 Sep 2005 (CDT), Re-updated by ~ Keripo 20:13, 18 Dec 2007 (CST)