Hello, I'm a newbie. I have some questions about OS dev.
1. Now, I'm using Visual C++ 2008. How to compile a kernel by VC2008.
2. How to test my kernel after compiling.
3. VC2008 is the best IDE and compiler to make a OS, isn't it ?
Finally, I am not a English and my E. skill isn't good so I hope you check my post
How to compile ?!
Re: How to compile ?!
Check the wiki/search the forums before asking this question (it seriously has been asked in at least 5 topics). Since the Visual C++ compiler only supports a few formats (including PE and COFF I believe) you will have no access to ELF, which is generally considered the best documented. With Visual C++, you will also require some special set-ups, I believe these are on the wiki too.vduck wrote:1. Now, I'm using Visual C++ 2008. How to compile a kernel by VC2008.
You basically create a 'binary' file (sort of like an executable), put it on some sort of removable device (such as a floppy) and let your bootloader (or if you can't/don't want to create your own, you can use GRUB) load it. Then you can 'run the floppy' by using an emulator (like Bochs, VMWare, VirtualPC, VirtualBox, ...) or by just rebooting your computer with the floppy inserted (but this can be 'dangerous').vduck wrote:2. How to test my kernel after compiling.
Not really. The IDE is just a matter of preference. The compiler is generally not the best compiler because GCC supports many more executable formats. Even though the VC++ compiler and GCC both have their advantages and disadvantages, using a GCC cross-compiler is generally considered the best, I believe.vduck wrote:3. VC2008 is the best IDE and compiler to make a OS, isn't it ?
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: How to compile ?!
Unless there's a way to get the VC++ compiler to do C and not C++ so you can skip all the constructor/destructor crap, and you really like intel syntax assemblyCreature wrote:Not really. The IDE is just a matter of preference. The compiler is generally not the best compiler because GCC supports many more executable formats. Even though the VC++ compiler and GCC both have their advantages and disadvantages, using a GCC cross-compiler is generally considered the best, I believe.vduck wrote:3. VC2008 is the best IDE and compiler to make a OS, isn't it ?
Re: How to compile ?!
Read the Required Reading.vduck wrote:Hello, I'm a newbie. I have some questions about OS dev.
1. Now, I'm using Visual C++ 2008. How to compile a kernel by VC2008.
2. How to test my kernel after compiling.
3. VC2008 is the best IDE and compiler to make a OS, isn't it ?
Finally, I am not a English and my E. skill isn't good so I hope you check my post