Guides

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.
cotton509
Member
Member
Posts: 91
Joined: Mon Nov 10, 2008 8:08 pm

Guides

Post by cotton509 »

I am requisting help finding guild and making a os. I want people who know c++ to post here not every one and people who know asm so that i and other users can get support. :roll:
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Guides

Post by JamesM »

cotton509 wrote:I am requisting help finding guild and making a os. I want people who know c++ to post here not every one and people who know asm so that i and other users can get support. :roll:

I've written tutorials (in C) and am also a fairly advanced C++ programmer. What exactly do you want?
cotton509
Member
Member
Posts: 91
Joined: Mon Nov 10, 2008 8:08 pm

Re: Guides

Post by cotton509 »

I would like a guide for a c++ kernal.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Guides

Post by JamesM »

cotton509 wrote:Iwould like a guide for a c++ kernal.
No.

Elaboration: There already is one on the OsDev wiki. It's called "Barebones C++" or something.
Last edited by JamesM on Sat Nov 15, 2008 8:36 am, edited 1 time in total.
cotton509
Member
Member
Posts: 91
Joined: Mon Nov 10, 2008 8:08 pm

Re: Guides

Post by cotton509 »

What do you mean?
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Guides

Post by JamesM »

Further elaboration - if you know your language (C++), you should be able to use that guide along with the language-specific HOWTO on the wiki to work out for yourself how to write a kernel in that language as opposed to C. I did, and so did many others.

I will not write a tutorial merely because you are too lazy to read, or because you are too ignorant to heed the good advice of others and know your language thoroughly before starting.

Cheers,

James
cotton509
Member
Member
Posts: 91
Joined: Mon Nov 10, 2008 8:08 pm

Re: Guides

Post by cotton509 »

I dont think you got what i meant i meant a guide but not a hello world one.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Guides

Post by JamesM »

cotton509 wrote:I dont think you got what i meant i meant a guide but not a hello world one.
I know exactly what you meant. The tutorials that I wrote (see my signature) are fairly thorough - they get you all the way to a multitasking kernel with user mode and filesystem support - but they're written in C.

Use the HOWTO and the barebones "Hello, world!" C++ tutorial on the wiki to work out exactly what you need to change to get C++ code compiling and working instead of C, then you can work through those tutorials as well.
cotton509
Member
Member
Posts: 91
Joined: Mon Nov 10, 2008 8:08 pm

Re: Guides

Post by cotton509 »

Ok i saw your tutorial i dont wwant to make a unix clone os. But if you are fluent in c is it possible to make a boot loader in c? Or will i have to use grub.
ru2aqare
Member
Member
Posts: 342
Joined: Fri Jul 11, 2008 5:15 am
Location: Hungary

Re: Guides

Post by ru2aqare »

cotton509 wrote:Ok i saw your tutorial i dont wwant to make a unix clone os. But if you are fluent in c is it possible to make a boot loader in c? Or will i have to use grub.
Of course it's possible. I wrote a second-stage boot loader in C. Well, to be exact, a small amount of assembly was required, but only for the boot sector and the mode switch between real, protected and long modes. On the other hand, I did not follow any specify guide.
cotton509
Member
Member
Posts: 91
Joined: Mon Nov 10, 2008 8:08 pm

Re: Guides

Post by cotton509 »

Oh ok. Could i use your boot loader after editing it to load the file that needs to be loaded? Also could i fit it into the mbr?
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Guides

Post by JamesM »

cotton509 wrote:Ok i saw your tutorial i dont wwant to make a unix clone os. But if you are fluent in c is it possible to make a boot loader in c? Or will i have to use grub.
Writing [your final] kernel based on tutorials is a stupid idea anyway. They're for teaching purposes. If you're after something unique (if not, why are you making one in the first place?) you're unlikely due to the definition of the word to be able to find a tutorial or guide telling you how to make it.

The best you can do is use what materials are out there (there are many) to learn how to make a kernel, then apply that knowledge to making your own one.
Oh ok. Could i use your boot loader after editing it to load the file that needs to be loaded? Also could i fit it into the mbr?
Write it yourself! You're infuriating!
cotton509
Member
Member
Posts: 91
Joined: Mon Nov 10, 2008 8:08 pm

Re: Guides

Post by cotton509 »

Fine but still i might as well use grub and change the setings. But where is the bare bones guide.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Guides

Post by JamesM »

cotton509 wrote:Fine but still i might as well use grub and change the setings. But where is the bare bones guide.

Just google it!
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Re: Guides

Post by inflater »

JamesM, he's either stupid or lazy, or both. No need to help him any further. He was given the proper instructions and still he can't compete with it.

http://forum.osdev.org/viewtopic.php?f= ... 5&start=75

This is, I'm afraid, against the rules on this forum.
1: Do not ask answered questions.
3: Meet the intellectual requirements
4: Post smart questions
6: Write legibly

and I've made something in the second thread,
7: ... and behave

Congrats mods for keeping that thread alive... http://forum.osdev.org/viewtopic.php?f=6&t=18386 cheers. :roll: They're 10 on this forum and they can't restore order somewhere. But yes, they're hardworking and all. What poverty.
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
Locked