From: Ali Akbar <ali.ak...@gmail.com>
Date: Tue, 13 Nov 2007 17:56:00 -0000
Subject: Re: Native C "Hello World" working in emulator
well done! thx for posting
On Nov 13, 8:31 pm, TomCooksey <TomCook...@googlemail.com> wrote: > I've managed to get a native C application working in the emulator.
> For those who are interested, here's how: > 1) Create your hello world program: > #include <stdio.h> > int main(int argc, char** argv) { > } > 2) Compile with an arm cross-compiler toolchain. I used a toolchain I > armv6-vfp-linux-gnueabi-gcc hi.c -o hi -static > Note the -static. I've not figured out the version of libc etc or the > 3) Copy to a running emulator: > 4) Run it! From the emulator console: > 5) Smile as you see "hello world" printed on the console. :-) > Next, I'm going to try and get busybox up & running so we can have You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||