Ios-overlay is a project mainly written in ..., it's free.
git clone git://github.com/gh2o/ios-overlay.git
PORTDIR_OVERLAY="/path/to/overlay"
emerge ios-toolchain
#include <Foundation/Foundation.h>
#include <stdio.h>
int main ()
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog (@"Go eat some grapes.");
[pool release];
return 0;
}
$ arm-apple-darwin10-gcc grapes.m -o grapes -lobjc -framework Foundation
$ scp grapes mobile@ipod:/tmp/
mobile@ipod's password:
$ ssh mobile@ipod /tmp/grapes
mobile@ipod's password:
2011-09-04 00:00:00.000 grapes[...] Go eat some grapes.
$