Just a newbie question... sorry

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.
squirrelos
Posts: 6
Joined: Fri May 15, 2009 6:36 pm

Just a newbie question... sorry

Post by squirrelos »

Hey guys my name is squirrelos. i have 2-3 years of C++ experience, 1 month of C experience and know a little bit of many other programming languages (ActionScript 2.0, PHP, HTML, Java, etc.).

I've got a newbie question that i wanted to ask all of you:
Tell me everything i need to learn, have, etc. to make an OS.
I've already been to the wiki i searched all the threads there and everything but seemed that when i got to a thread that seemed helpful it would then point me to threadXYZ and threadXYZ would point me to threadABc and threadABc would point me to thread.... and so on and nothing told me really how to get started :( :(

So please, please [-o< [-o< [-o< you guys tell me how to get started.

Thanks in advance.
squirrelos :D
purage
On Probation
Posts: 119
Joined: Wed Feb 11, 2009 1:04 am

Re: Just a newbie question... sorry

Post by purage »

Can I attempt to save this one, please? Before the bombs start falling, let me point him to here: http://wiki.osdev.org/Getting_Started

Next, some tutorials: http://www.osdever.net/bkerndev/Docs/title.htm

Good luck.
squirrelos
Posts: 6
Joined: Fri May 15, 2009 6:36 pm

Re: Just a newbie question... sorry

Post by squirrelos »

Hi purage thanks for the help but i've already been to both tutorials/threads.
purage
On Probation
Posts: 119
Joined: Wed Feb 11, 2009 1:04 am

Re: Just a newbie question... sorry

Post by purage »

What's the problem then?
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Re: Just a newbie question... sorry

Post by 01000101 »

*poof*, everything you need to get started on a small tutorial-based OS.

Really, if you can't learn from those pages already posted, then you will have really big problems later on when documentation is scarce.
squirrelos
Posts: 6
Joined: Fri May 15, 2009 6:36 pm

Re: Just a newbie question... sorry

Post by squirrelos »

thanks for all the help guys but i don't think you understand what i need:

i just want someone to tell me the languages to learn and the programs to download/have.

sorry if i'm being rude or sound like a total idiot.

[edit] so basically: how did YOU get started? [/edit]
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Just a newbie question... sorry

Post by quanganht »

The language is your choice. Almost every language is possible to make an OS, but the most recommended is C (C++ is nearly the same). Assembly is mandatory, because you will need at least few line of asm to start your kernel.
Tools for developing is your choice too.
- Compiler, linker:
In case of C/C++:
If you are running on Linux/Mac OS X then GCC is the only option. If you're using Win, you may consider getting Cygwin GCC or DJGPP or MinGW.
In case of Pascal:
Free Pascal is good.
Others: I don't know. :oops:
Also NASM for asm compiling.
- Others tools like disk image, pc emulator... Google them and find what suit you the most.
"Programmers are tools for converting caffeine into code."
squirrelos
Posts: 6
Joined: Fri May 15, 2009 6:36 pm

Re: Just a newbie question... sorry

Post by squirrelos »

thank you very much quanganht.

also is it possible to compile the c++/c code in dev-c++?
and how did you get started?
User avatar
ehenkes
Member
Member
Posts: 124
Joined: Mon Mar 23, 2009 3:15 am
Location: Germany
Contact:

Re: Just a newbie question... sorry

Post by ehenkes »

dev-cpp
better use the de-facto successor: code::blocks or just make/makefile :)
how did YOU get started?
I read Bran's (good) and JM's tutorial (forget the multitasking chapter, better look at http://www.henkessoft.de/OS_Dev/OS_Dev2 ... ocId114565), but decided to build my own bootloader for RM and PM (really fun, and educational reasons), now I am member of forum.osdev.org (often not very helpful, sometimes rude/arrogant: look here: http://forum.osdev.org/viewtopic.php?f=2&t=17134) and lowlevel.brainsware.org/forum (very helpful, really experienced people there, e.g. PortChicken), writing my own tutorial and searching for an open-minded OS community on a long-term basis. :D
Mark139
Member
Member
Posts: 39
Joined: Mon Jan 15, 2007 2:32 pm

Re: Just a newbie question... sorry

Post by Mark139 »

How I got started. Was bored one evening and came across this site. Read the wiki. Read some of the tutorials. Downloaded the intel manuals. Built gcc cross compiler (in linux running in a virtual machine). Installed BOCHS. Created a grub image (following wiki instructions). Finally using a tutorial (thanks whoever wrote that) I got a "hello world" message on the screen. Awesome site when it worked on a real PC! wow, that was my OS 1.0

After that you have to scale the mount everest of OS development. I got as far as virtual memory, multiple tasks, simple IPC, but didn't get to user mode. I now seem to have run out of time.

All the best.
Mark
P.S remember everybody on this forum is busy coding their own OS's and are usually more than happy to answers questions that can't be found on the wiki. But read the wiki first. If the wiki isn't clear then maybe you could add to it.
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Just a newbie question... sorry

Post by quanganht »

For me, the idea of a new OS start when I was about 12 ( 5 years ago). That time I knew nothing about computer. Then I start with Pascal and quickly forget about the OS ( you know, kids can't remember anything for a long time ). After 4 years, the idea came back to me, so I join this forum and start looking around. But until now, I'm still beginner. :|

Edit: Well, after more than ten times rewriting the kernel, I'm a little better than beginners 8)
Last edited by quanganht on Sat May 16, 2009 9:08 am, edited 1 time in total.
"Programmers are tools for converting caffeine into code."
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: Just a newbie question... sorry

Post by neon »

Tell me everything i need to learn, have, etc. to make an OS.
-A general programming language (C, C++, Pascal, FreeBASIC)
-How that language works inside-out
-Data structures/Software Engineering
-System Architecture
-Processor Architecture
-A low level assembly language

Everything else that you need to learn depends on your OS.
also is it possible to compile the c++/c code in dev-c++?
Look at the switches for the compiler and linker and determine the answer to that yourself. Known tested solutions are c::b, DJGPP, GCC, and MSVC.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Axalto
Posts: 17
Joined: Wed Apr 01, 2009 12:58 pm

Re: Just a newbie question... sorry

Post by Axalto »

quanganht wrote:For me, the idea of a new OS start when I was about 12 ( 5 years ago). That time I knew nothing about computer. Then I start with Pascal and quickly forget about the OS ( you know, kids can't remember anything for a long time ). After 4 years, the idea came back to me, so I join this forum and start looking around. But until now, I'm still beginner. :|

Edit: Well, after more than ten times rewriting the kernel, I'm a little better than beginners 8)
Hi, my idea of a new os started too when I was 12.
The difference is: I knew (and know) verry, verry (realy verry) much about computers.
Now, after 1 year, I'm tierd to hear I'm to young.
Becouse it looks like nobody can help me, I started a study at the OU (Open University).
So... Can someone ever be to young to learn making a os?
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Just a newbie question... sorry

Post by Troy Martin »

Not as long as you act mature and try to grasp as much as you can. I'm only 13, fourteen in one month and five days.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Just a newbie question... sorry

Post by quanganht »

Troy Martin wrote:Not as long as you act mature and try to grasp as much as you can. I'm only 13, fourteen in one month and five days.
Oh really? :shock: So you are some kind of genius huh?
"Programmers are tools for converting caffeine into code."
Post Reply