Compile a program in QEMU

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
gapry
Posts: 10
Joined: Sat Aug 25, 2012 7:42 pm

Compile a program in QEMU

Post 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?
no92
Member
Member
Posts: 307
Joined: Wed Oct 30, 2013 1:57 pm
Libera.chat IRC: no92
Location: Germany
Contact:

Re: Compile a program in QEMU

Post 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).
User avatar
narke
Member
Member
Posts: 119
Joined: Wed Dec 26, 2007 3:37 am
Location: France

Re: Compile a program in QEMU

Post 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.
OS for PowerPC Macs: https://github.com/narke/Einherjar
Operating system: colorForth computing environment for x86.: https://github.com/narke/Roentgenium
Post Reply