Page 1 of 1

Creating executables

Posted: Fri Jan 14, 2011 6:41 pm
by Atom
Ok,I'm preparing for this weekend to create a simple OS.I have only one doubt:
How can I create executables for my OS?

Re: Creating executables

Posted: Fri Jan 14, 2011 6:50 pm
by Jezze
You compile them as normal using gcc or any other tool of you choice.

Re: Creating executables

Posted: Fri Jan 14, 2011 7:07 pm
by Tosi
If you are using an already defined executable format such as PE or ELF:
Build a cross-compiler which supports generating code for your target processor and executable format.

If you are rolling your own executable format:
Modify a compiler to add support for your format. This can be very difficult.

Re: Creating executables

Posted: Fri Jan 14, 2011 10:11 pm
by JackScott
I'd read OS_Specific_Toolchain on the wiki, it answers your question pretty much perfectly.

Re: Creating executables

Posted: Sat Jan 15, 2011 8:11 am
by Atom
Thank very much guys!!!!