Is C a good OS-Developing language?

Programming, for all ages and all languages.
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Is C a good OS-Developing language?

Post by VolTeK »

berkus wrote:Do you have a high-res of that picture?
5000 x 4068 Just waiting for the right person
iON
Posts: 20
Joined: Fri Sep 09, 2011 4:09 pm

Re: Is C a good OS-Developing language?

Post 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 :)
User avatar
miker00lz
Member
Member
Posts: 144
Joined: Wed Dec 08, 2010 3:16 am
Location: St. Louis, MO USA

Re: Is C a good OS-Developing language?

Post 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.
DJAlexem
Member
Member
Posts: 33
Joined: Wed Sep 07, 2011 7:57 pm
Location: NSW, Australia

Re: Is C a good OS-Developing language?

Post 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...
Just a n00b C programmer, aiming to enter the world of advanced programming through OSDev :D

My Mixes
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Is C a good OS-Developing language?

Post 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
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: Is C a good OS-Developing language?

Post 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
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
DJAlexem
Member
Member
Posts: 33
Joined: Wed Sep 07, 2011 7:57 pm
Location: NSW, Australia

Re: Is C a good OS-Developing language?

Post by DJAlexem »

Lol piranha, thx for that, but dad still would not let me, xD, its an expensive pc...
Just a n00b C programmer, aiming to enter the world of advanced programming through OSDev :D

My Mixes
User avatar
Chandra
Member
Member
Posts: 487
Joined: Sat Jul 17, 2010 12:45 am

Re: Is C a good OS-Developing language?

Post 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......
Programming is not about using a language to solve a problem, it's about using logic to find a solution !
User avatar
Chandra
Member
Member
Posts: 487
Joined: Sat Jul 17, 2010 12:45 am

Re: Is C a good OS-Developing language?

Post 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).
Programming is not about using a language to solve a problem, it's about using logic to find a solution !
DJAlexem
Member
Member
Posts: 33
Joined: Wed Sep 07, 2011 7:57 pm
Location: NSW, Australia

Re: Is C a good OS-Developing language?

Post 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...
Just a n00b C programmer, aiming to enter the world of advanced programming through OSDev :D

My Mixes
User avatar
DavidCooper
Member
Member
Posts: 1150
Joined: Wed Oct 27, 2010 4:53 pm
Location: Scotland

Re: Is C a good OS-Developing language?

Post 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.
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Is C a good OS-Developing language?

Post 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.
DJAlexem
Member
Member
Posts: 33
Joined: Wed Sep 07, 2011 7:57 pm
Location: NSW, Australia

Re: Is C a good OS-Developing language?

Post 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?
Just a n00b C programmer, aiming to enter the world of advanced programming through OSDev :D

My Mixes
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Is C a good OS-Developing language?

Post by VolTeK »

She better not now ;)
DJAlexem
Member
Member
Posts: 33
Joined: Wed Sep 07, 2011 7:57 pm
Location: NSW, Australia

Re: Is C a good OS-Developing language?

Post by DJAlexem »

GhostXoPCorp wrote:She better not now ;)
xD, your so screwed, better hide t3h evidence...
Just a n00b C programmer, aiming to enter the world of advanced programming through OSDev :D

My Mixes
Post Reply