+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Making a little C-L OS?

  1. #1
    tgp1994's Avatar
    tgp1994 is offline x10Hosting Member tgp1994 is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    33

    Unhappy Making a little C-L OS?

    I was just going to try an educate my self on the ways of the computer, so since I *sorta* know some programming languages, I thought it would be cool to make a very small commandline OS for VMWare.

    So I understand that the lowest language you can get to is ASM. And I've read tons upon tons of guides and information about ASM, but I usually just end up getting confused. I mean, it's giving me the impression that it's straightforward, but I don't have any idea what includes I need if I were to start out with nothing, and I these memory addresses, there doesn't seem to be any book that says what each one does. (Beep, print a string, w/e.)

    If someone could help a bit, that would be great.

  2. #2
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,432

    Re: Making a little C-L OS?

    Well, I've tried to program in Assembler once myself, but I stopped for the exact same reason as you. However, I believe that most OSes Kernels are built in C or C++ nowadays, so you should check that out.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  3. #3
    ichwar's Avatar
    ichwar is offline Community Advocate ichwar is an unknown quantity at this point
    Join Date
    Dec 2008
    Location
    NC, USA
    Posts
    1,454

    Re: Making a little C-L OS?

    ASM, lol. Why not at least start out with something simpler, like C, python, or Java? It will make learning ASM a good bit easier I think.

  4. #4
    ah-blabla's Avatar
    ah-blabla is offline x10 Lieutenant ah-blabla is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    375

    Re: Making a little C-L OS?

    C is probably the best language for an OS, since it is can then be translated to ASM for you. (Unix, Linux, HURD, Solaris, even Window$ I think are written in C, earlier OSs were commonly written in ASM.) The only thing is C is quite a horrible language (a.k.a. low-level), which means you have to do memory management etc (and even more so with ASM), but that is to be expected if you are writing a kernel. I would recommend writing applications first before an os so that you get to know whatever language you are using well.

  5. #5
    tgp1994's Avatar
    tgp1994 is offline x10Hosting Member tgp1994 is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    33

    Re: Making a little C-L OS?

    So you can seriously write a program up in C and any PC will run it? (Well, I'm aiming at Intel pcs.) I bet there's a little more to it, but heck, I think C would be Easier than assembly. So then if anyone has any C guides to making stand alone programs that will run at boot time, that would be awesome. Also some favorite IDEs woulsd be nice too ;)

    EDIT: And I'm not planning on making the next Microsoft windows or the next Ubuntu, just a simple thing where I can type hi and it says hi back or something. (And I'm not that lonely :P)
    Last edited by tgp1994; 09-21-2009 at 02:19 PM.

  6. #6
    ah-blabla's Avatar
    ah-blabla is offline x10 Lieutenant ah-blabla is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    375

    Re: Making a little C-L OS?

    Quote Originally Posted by tgp1994 View Post
    So you can seriously write a program up in C and any PC will run it? (Well, I'm aiming at Intel pcs.) I bet there's a little more to it, but heck, I think C would be Easier than assembly. So then if anyone has any C guides to making stand alone programs that will run at boot time, that would be awesome. Also some favorite IDEs woulsd be nice too ;)

    EDIT: And I'm not planning on making the next Microsoft windows or the next Ubuntu, just a simple thing where I can type hi and it says hi back or something. (And I'm not that lonely :P)
    Maybe look at the Linux source code. At best that from the early days where there wasn't as much of it. But if I remember correctly even the Linux kernel has some ASM in it. Getting the kernel into memory and starting it is probably the hardest part, so you might want to look at how kernels actually get loaded by a bootloader. (grub?)

    BTW, a degree in computer science is definetely helpful here.

    Update:// This might be interesting for you:
    http://www.osdever.net/bkerndev/index.php
    BTW, the page there is broken, read this instead:
    http://www.osdever.net/bkerndev/Docs/intro.htm
    Last edited by ah-blabla; 09-21-2009 at 02:46 PM.

  7. #7
    steronius's Avatar
    steronius is offline x10 Sophmore steronius is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    191

    Re: Making a little C-L OS?

    option: look at FreeDOS source-code.

  8. #8
    tgp1994's Avatar
    tgp1994 is offline x10Hosting Member tgp1994 is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    33

    Re: Making a little C-L OS?

    Lol too bad I'm only in Highschool. So could this possibly be a little too much for me? I mean, ya, I've done quite a bit of VB.Net, but that looks neither as simple nor as straightforward as this stuff. I'll take a look guys, thanks.

  9. #9
    ah-blabla's Avatar
    ah-blabla is offline x10 Lieutenant ah-blabla is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    375

    Re: Making a little C-L OS?

    If you've only ever used VB.net then you definitely need to practice with C before trying to write a kernel. C is quite different from VB.net, notably being a procedural language whereas VB is object orientated, so programs in general are structured quite differently. In C you also have to learn memory management, which I think VB.net does for you. Then there's pointers and other strange things in C. But for a simple kernel that says hello you probably don't need to know too much. I would just go ahead and try, and see how far you get.

  10. #10
    tgp1994's Avatar
    tgp1994 is offline x10Hosting Member tgp1994 is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    33

    Re: Making a little C-L OS?

    Umm... what the heck... my post didn't post. Well, what I tried to say was, ya, I bet C is a lot different/harder the VB.Net. Do you or anyone else happen to know of any good C IDEs that preferably come with Intellisense/A list of C commands and a built in compiler?

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Making my site
    By nightbandit in forum Review My Site
    Replies: 6
    Last Post: 03-27-2009, 05:29 AM
  2. Making Money with my site....
    By admintwo in forum Earning Money
    Replies: 2
    Last Post: 09-30-2008, 08:06 PM
  3. Money Making Sites
    By dWhite in forum Earning Money
    Replies: 9
    Last Post: 05-09-2008, 03:14 AM
  4. The Better Money Making Tutorial-Part1
    By nitekazap in forum The Marketplace
    Replies: 4
    Last Post: 10-24-2007, 09:03 AM
  5. Webdesign Xenon is making for me.
    By echo_unlimited in forum Graphics & Webdesign
    Replies: 5
    Last Post: 05-14-2006, 08:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers