Page 1 of 1

Compile a program in QEMU

Posted: Tue May 06, 2014 6:31 pm
by gapry
I write a new system call and compile to a new kernel and run it in QEMU successfully.

For now, I need to write a small program to test the new system call.

How do I compile it in the new kernel which run on the QEMU for ARM platform?

Re: Compile a program in QEMU

Posted: Tue May 06, 2014 11:02 pm
by no92
If you're that far with a kernel on ARM you should know that (if you're not copy & pasting all the time).

The title "Compile a program in QEMU" made me laugh and think "what a noob", so try to choose better ones.

Here's the link to the wiki everyone loves to post on that kind of a topic: Required Knowledge (especially number 10 should be interesting fo you).

Re: Compile a program in QEMU

Posted: Sun May 11, 2014 5:58 am
by narke
I guess that you need to implement a file system and an elf loader to find and execute your application, see that: http://www.jamesmolloy.co.uk/tutorial_h ... nitrd.html.