OSDEV IN WINDOWS?

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.
User avatar
sakuya84
Posts: 9
Joined: Thu May 29, 2008 3:12 pm

OSDEV IN WINDOWS?

Post by sakuya84 »

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
User avatar
lukem95
Member
Member
Posts: 536
Joined: Fri Aug 03, 2007 6:03 am
Location: Cambridge, UK

Post by lukem95 »

its rude to shout.

i use DJGPP and Cygwin. Cygwin is the preferred method. You could also use MinGW. Read the Wiki
~ Lukem95 [ Cake ]
Release: 0.08b
Image
User avatar
sakuya84
Posts: 9
Joined: Thu May 29, 2008 3:12 pm

Post by sakuya84 »

Thx you now i'll try, and i'm so sorry i had no intentio to shout ^^'''''''
svdmeer
Member
Member
Posts: 87
Joined: Tue May 06, 2008 9:32 am
Location: The Netherlands

Re: OSDEV IN WINDOWS?

Post by svdmeer »

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
Nasm is also for Windows.
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.
tadada
Member
Member
Posts: 42
Joined: Sun Apr 20, 2008 5:32 pm
Location: Index 0 of the nearest Array

Post by tadada »

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.
My OS: SOS (Simple Operating System).
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

Unix/Linux has the command 'dd', Windows not.
Not by default maybe. dd works perfectly fine under windows
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Post by neon »

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 :)
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();}
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Post by bewing »

I use NASM and JLOC for linking . Norton Diskedit for messing with disk images.
Bochs for debugging/simulating. MSVC5 or QuickC for any C compilation that I need, until my system is self-hosting (sometime soon).
User avatar
karloathian
Posts: 22
Joined: Fri Mar 28, 2008 12:09 am

Post by karloathian »

Just out of curiosity how many here use like I do the QEMU + GDB combo?
User avatar
jinksys
Posts: 20
Joined: Tue May 20, 2008 4:52 pm
Location: St Louis, Missouri, USA

Post by jinksys »

I use notepad++ for editing my source, cygwin with GCC for compiling. Virtual Floppy Drive (VFD) and Bochs to boot my kernel.
User avatar
samueldotj
Member
Member
Posts: 32
Joined: Mon Nov 13, 2006 12:24 am

Post by samueldotj »

To compile I use cygwin, gcc cross compiler, nasm.

For copying kernel to floppy image I use filedisk.

gdb-stub is compiled into my kernel, so I can debug using serial port. I use com0com to create virtual serial ports.

Sam
oscoder
Member
Member
Posts: 59
Joined: Mon Mar 27, 2006 12:00 am
Location: UK

Post by oscoder »

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
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Post by suthers »

I have exactly the same setup as oscoder...
Jules
User avatar
lukem95
Member
Member
Posts: 536
Joined: Fri Aug 03, 2007 6:03 am
Location: Cambridge, UK

Post by lukem95 »

suthers wrote:I have exactly the same setup as oscoder...
Jules
so do i :)


it works very well for me, i learnt to code C using dev-c++ so it's the IDE im used to
~ Lukem95 [ Cake ]
Release: 0.08b
Image
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Post by suthers »

lukem95 wrote:
suthers wrote:I have exactly the same setup as oscoder...
Jules
so do i :)


it works very well for me, i learnt to code C using dev-c++ so it's the IDE im used to
Yah, I learnt C/C++ using dev-c++ too and I think it's a really good IDE.
(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
Post Reply