Creating executables

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
Atom
Posts: 10
Joined: Sun Apr 25, 2010 8:50 am
Location: Aracaju,Brazil

Creating executables

Post 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?
User avatar
Jezze
Member
Member
Posts: 395
Joined: Thu Jul 26, 2007 1:53 am
Libera.chat IRC: jfu
Contact:

Re: Creating executables

Post by Jezze »

You compile them as normal using gcc or any other tool of you choice.
Fudge - Simplicity, clarity and speed.
http://github.com/Jezze/fudge/
Tosi
Member
Member
Posts: 255
Joined: Tue Jun 15, 2010 9:27 am
Location: Flyover State, United States
Contact:

Re: Creating executables

Post 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.
User avatar
JackScott
Member
Member
Posts: 1032
Joined: Thu Dec 21, 2006 3:03 am
Location: Hobart, Australia
Mastodon: https://aus.social/@jackscottau
GitHub: https://github.com/JackScottAU
Contact:

Re: Creating executables

Post by JackScott »

I'd read OS_Specific_Toolchain on the wiki, it answers your question pretty much perfectly.
Atom
Posts: 10
Joined: Sun Apr 25, 2010 8:50 am
Location: Aracaju,Brazil

Re: Creating executables

Post by Atom »

Thank very much guys!!!!
Post Reply