Page 2 of 5

Re: Is C a good OS-Developing language?

Posted: Sun Sep 11, 2011 6:00 pm
by VolTeK
berkus wrote:Do you have a high-res of that picture?
5000 x 4068 Just waiting for the right person

Re: Is C a good OS-Developing language?

Posted: Sun Sep 11, 2011 7:47 pm
by iON
not to just repeat everyone,but i like bochs. :mrgreen:
one thing i do is create a virtual floppy,write it,close it,and then use bochs to load it.
sorry i can't point to a specific one,but there are several ways to make virtual floppies found all around.
(makes it easier then destroying a real floppy,cd,or even real HDD :mrgreen: )
also,when you said you didn't want to destroy the pc,just try to not actualy write to anything.
so far i've only done memory "mov"s,and that gets reset when the (cpu) chip does.
:mrgreen:
idk if c is good,i was afraid to use it for a kernel because a few attempts in grub wouldn't even find my kernel! ill tell you if i can :)

Re: Is C a good OS-Developing language?

Posted: Sun Sep 11, 2011 8:21 pm
by miker00lz
iON wrote:not to just repeat everyone,but i like bochs. :mrgreen:
one thing i do is create a virtual floppy,write it,close it,and then use bochs to load it.
sorry i can't point to a specific one,but there are several ways to make virtual floppies found all around.
(makes it easier then destroying a real floppy,cd,or even real HDD :mrgreen: )
also,when you said you didn't want to destroy the pc,just try to not actualy write to anything.
so far i've only done memory "mov"s,and that gets reset when the (cpu) chip does.
:mrgreen:
idk if c is good,i was afraid to use it for a kernel because a few attempts in grub wouldn't even find my kernel! ill tell you if i can :)
i'm not sure what you're doing, but C is more or less the de-facto standard for kernel writing.

P.S. i see you havent found a better site for OS devving. and you won't.

Re: Is C a good OS-Developing language?

Posted: Mon Sep 12, 2011 3:07 am
by DJAlexem
LOL, mike, ur so right, this is the beast OSDeving site, even if i fail at developing a simple kernel, i will still remain here and watch people's work, and be an all round 'yes' man and theory guide :D

plus im starting to see how more and more things work, this site is a godsend...

Re: Is C a good OS-Developing language?

Posted: Mon Sep 12, 2011 12:03 pm
by AJ
Hi,
iON wrote:idk if c is good,i was afraid to use it for a kernel because a few attempts in grub wouldn't even find my kernel! ill tell you if i can :)
Whether or not GRUB finds your kernel won't have anything to do with your choice of programming language. Chances are that something was wrong about the positioning or content of the multiboot header.

Cheers,
Adam

Re: Is C a good OS-Developing language?

Posted: Mon Sep 12, 2011 12:57 pm
by piranha
so you can do most of the stuff you can do in assembly by using C alone? is it THAT low level?
Most, yes. You cannot load a GDT, switch to usermode, etc. There are many things you'll have to write in assembly to do that are quite important.
LOL, dad would kill me if i tried to boot my own operating system onto the PC... -.-'
Why? As long as you don't modify anything on the computer there'd be no reason to...just boot it off a CD of floppy.
idk if c is good,i was afraid to use it for a kernel because a few attempts in grub wouldn't even find my kernel! ill tell you if i can
Thats cause you did something wrong.

-JL

Re: Is C a good OS-Developing language?

Posted: Tue Sep 13, 2011 2:03 am
by DJAlexem
Lol piranha, thx for that, but dad still would not let me, xD, its an expensive pc...

Re: Is C a good OS-Developing language?

Posted: Tue Sep 13, 2011 4:16 am
by Chandra
miker00lz wrote:P.S. i see you havent found a better site for OS devving. and you won't.
He did show some attitude last time but still, he's welcome to stay here......

Re: Is C a good OS-Developing language?

Posted: Tue Sep 13, 2011 4:20 am
by Chandra
DJAlexem wrote:but dad still would not let me
My dad would've been so proud of me if he had lived to see what I'm doing. I'd definately dedicate my work to my dad when I make a release (and you'd better start convincing yours).

Re: Is C a good OS-Developing language?

Posted: Tue Sep 13, 2011 5:12 am
by DJAlexem
Chandra wrote:My dad would've been so proud of me if he had lived to see what I'm doing. I'd definately dedicate my work to my dad when I make a release (and you'd better start convincing yours).
if anything, i'd devote my mixes (and maybe even singles >.<) to my parents and family, and dedicate any programming feats or successful operating Systems to my gf...

Re: Is C a good OS-Developing language?

Posted: Tue Sep 13, 2011 11:20 am
by DavidCooper
piranha wrote:As long as you don't modify anything on the computer there'd be no reason to...just boot it off a CD of floppy.
Not good advice - it is possible to damage a machine if you make a mistake, so the best thing to do is get hold of an old machine for as little money as possible (e.g. free) and test your OS on that during the early stages. If you blow it up, get another. I managed to destroy a couple of machines early on, though in those days I worked mainly by trial and error as I didn't have access to the Web and couldn't get hold of the kind of information that's so easy to find here. I also had a number of crashes which left a machine unable to boot until I drained the battery that maintains the CMOS memory when the machine's off - that's not something you want to have to do with an expensive machine. It's only recently that I've dared to run my OS on top-of-the-range machines, and so far no problems, but I still try out everything new on a cheap netbook first just in case something goes horribly wrong.

Re: Is C a good OS-Developing language?

Posted: Tue Sep 13, 2011 2:27 pm
by VolTeK
DJAlexem wrote:and dedicate any programming feats or successful operating Systems to my gf...

My fiancé thinks its cute.


..i then lock her car and hide the keys. When she looks for it, i call her cute.

Re: Is C a good OS-Developing language?

Posted: Tue Sep 13, 2011 3:44 pm
by DJAlexem
GhostXoPCorp wrote:My fiancé thinks its cute.


..i then lock her car and hide the keys. When she looks for it, i call her cute.
LOL, n1 ghost, does ur fiance read this site?

Re: Is C a good OS-Developing language?

Posted: Tue Sep 13, 2011 7:15 pm
by VolTeK
She better not now ;)

Re: Is C a good OS-Developing language?

Posted: Wed Sep 14, 2011 5:32 am
by DJAlexem
GhostXoPCorp wrote:She better not now ;)
xD, your so screwed, better hide t3h evidence...