Binary and compilling

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
guidev
Posts: 3
Joined: Sat Oct 10, 2009 1:06 pm

Binary and compilling

Post by guidev »

Hello,
I read tutorial "C++ kernel" on osdever.net, but I didn't understand one thing. If I compile a program in Windows, it will have an .exe extension, but OS with .exe extension probably won't work. How I can set my own binary extension, for example is my OS called "MyOs", so I'll want to set binary extension like .ms, how I can make it work?

Thank you for answers ( Sorry for bad English, I'm a citizen )
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Re: Binary and compilling

Post by nekros »

Ok I think you need to do a little more studying on how computers work in general.

1. The computer has no idea how to run your OS (unless of course it's a flat binary then you just need to start from the beginning and execute) in whatever format the executable is using.

2. EXE is just a file name extension, nothing more, the extension is just there to let you know something about the file.

3.I really can't tell you how to make an OS in one post and your probably wouldn't understand it all anyway. Read Andrew S. Tanenbaum's OSdev books.
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
guidev
Posts: 3
Joined: Sat Oct 10, 2009 1:06 pm

Re: Binary and compilling

Post by guidev »

Ok, thank you.
Post Reply