OSDEV IN WINDOWS?
OSDEV IN WINDOWS?
Hi guys,
this is my first post in the forum, and i have a questionfor you....
i want to develop my OS in windows and not Linux which are the tool that i need to do that? in Linux i wa using nasm,gcc and ld for link
i'm waitin for your response.
thx in advance
sakuya84
this is my first post in the forum, and i have a questionfor you....
i want to develop my OS in windows and not Linux which are the tool that i need to do that? in Linux i wa using nasm,gcc and ld for link
i'm waitin for your response.
thx in advance
sakuya84
Re: OSDEV IN WINDOWS?
Nasm is also for Windows.sakuya84 wrote:Hi guys,
this is my first post in the forum, and i have a questionfor you....
i want to develop my OS in windows and not Linux which are the tool that i need to do that? in Linux i wa using nasm,gcc and ld for link
i'm waitin for your response.
thx in advance
sakuya84
An emulator for testing saves much time, Bochs runs also on Windows
These two great open source tools are available for Windows.
You need some tools to write your kernel to a disk-image or real disk. Unix/Linux has the command 'dd', Windows not.
I don't recomment you using Windows. Learning Unix increases your knowledge about OS-es in common and the tools under Unix/Linux are much more powerful and free.
I use Nasm for assembly, DJGPP for C/C++ (even though I don't use C/C++, my kernel is assembly), LD for linking (included in DJGPP which is just a port of the GCC to windows so has most of the programs your familar with) and Partcopy for putting the files (like the bootsector) on the floppy. (Partcopy is dangerous for it can erase/copy over important files so read the instructions carefully)
There are some tutorials that will exsplain how to use the programs and their instructions. Brokenthorn.com's os development series is very good and exsplains all these programs except for DGJPP and mabye not LD. Those would be exsplained in Bran's Kernel development tutorial (also a very good tutorial). Look in the wiki's resource page to find them.
There are other programs that you can use but most of them are the common ones. It really is up to you and what you prefer. Just try some programs (or some tuts that go over different programs) and see which ones you like.
Good Luck to you.
There are some tutorials that will exsplain how to use the programs and their instructions. Brokenthorn.com's os development series is very good and exsplains all these programs except for DGJPP and mabye not LD. Those would be exsplained in Bran's Kernel development tutorial (also a very good tutorial). Look in the wiki's resource page to find them.
There are other programs that you can use but most of them are the common ones. It really is up to you and what you prefer. Just try some programs (or some tuts that go over different programs) and see which ones you like.
Good Luck to you.
My OS: SOS (Simple Operating System).
I use NASM for the bootloader and MSVC++ 2005/2008 for the kernel and everything else.
Bochs is a great emulator+debugger. PartCopy for copying the bootloader.
I used DJGPP and LD before as well in my previous system
Bochs is a great emulator+debugger. PartCopy for copying the bootloader.
I used DJGPP and LD before as well in my previous system
Last edited by neon on Sun Jun 01, 2008 10:30 am, edited 1 time in total.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
- karloathian
- Posts: 22
- Joined: Fri Mar 28, 2008 12:09 am
- samueldotj
- Member
- Posts: 32
- Joined: Mon Nov 13, 2006 12:24 am
I do OSdev in windows, with the following tools:
- DJGPP (gcc, ld, binutils, etc)
- NASM
- Bochs
- Dev-cpp (for coding)
I've used these for a long time and am very satisfied . I can also recommend winimage to make disk image creation easier when using an emulator, although you do unfortunately have to pay for it. Also, if you ever try to compile your OS on a BSD unix system later, don't forget to use gmake instead of make!
OScoder
- DJGPP (gcc, ld, binutils, etc)
- NASM
- Bochs
- Dev-cpp (for coding)
I've used these for a long time and am very satisfied . I can also recommend winimage to make disk image creation easier when using an emulator, although you do unfortunately have to pay for it. Also, if you ever try to compile your OS on a BSD unix system later, don't forget to use gmake instead of make!
OScoder
Yah, I learnt C/C++ using dev-c++ too and I think it's a really good IDE.lukem95 wrote:so do isuthers wrote:I have exactly the same setup as oscoder...
Jules
it works very well for me, i learnt to code C using dev-c++ so it's the IDE im used to
(I still remember buying C game programming for beginners, the book that started me coding when I was 9... and it came with a disk with Dev-c++ on it and I've used it ever since... I used MS visual studio for a bit but it annoys me...)
Jules