Lost Password?

Go Back   CodeCall Programming Forum > Software Development > C and C++

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-26-2006, 09:48 AM
NeedHelp NeedHelp is offline
Programming God
 
Join Date: May 2006
Posts: 527
Credits: 0
Rep Power: 12
NeedHelp is on a distinguished road
Default Creating an OS

What consists of creating an OS in C++? What needs to be done to allow the computer to boot to your OS and what can you make it in? For instance, can you make it with Visual C++ 2005? Just curious on what needs to happen.
__________________
I Need Help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 06-26-2006, 04:46 PM
TkTech TkTech is online now
 
Join Date: Jun 2006
Posts: 918
Last Blog:
Having trouble with yo...
Credits: 49
Rep Power: 20
TkTech is on a distinguished road
Send a message via MSN to TkTech
Default

you probably could, but i highly suggest NOT using Visual C++. By defualt it has way to many dependencies. For making your own os, check osdever.net and http://www.mega-tokyo.com/forum/ ( near the bottom ). These are resources ive used to build my hobby os. Also, make sure you know assembler, and id recomend you use C to make your first os.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-27-2006, 03:43 PM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 410
Credits: 0
Rep Power: 11
Void is on a distinguished road
Default

TkTech, where is your hobby OS at? I'd love to see it!
__________________
Void
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-27-2006, 04:19 PM
TkTech TkTech is online now
 
Join Date: Jun 2006
Posts: 918
Last Blog:
Having trouble with yo...
Credits: 49
Rep Power: 20
TkTech is on a distinguished road
Send a message via MSN to TkTech
Default

the older one is at tktech.org/orion.php . I havent updated the site yet.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-02-2006, 09:34 AM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 410
Credits: 0
Rep Power: 11
Void is on a distinguished road
Default

Quote:
Originally Posted by TkTech
you probably could, but i highly suggest NOT using Visual C++. By defualt it has way to many dependencies. For making your own os, check osdever.net and http://www.mega-tokyo.com/forum/ ( near the bottom ). These are resources ive used to build my hobby os. Also, make sure you know assembler, and id recomend you use C to make your first os.
Building an OS as a hobby sounds like a lot of fun. How did you get into building OSes? How often to you work on it?
__________________
Void
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 07-03-2006, 06:41 PM
Kaabi's Avatar   
Kaabi Kaabi is offline
Programming God
 
Join Date: Jul 2006
Posts: 884
Credits: 0
Rep Power: 14
Kaabi is on a distinguished road
Default

My friend once made an OS, it was a long time ago and he never told me what language he used to make it (I guess it must have been C++). It was so weird, but that's probably just because I'm so accustomed to Windows.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-07-2007, 06:31 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 595
Last Blog:
Programs Under the Hoo...
Credits: 174
Rep Power: 10
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default

I'd definitely recommend using assembler for a small-scale OS. Try making small generic component functions and programs, then build upwards from there. Not only is everything modularized so that bugs will be easier to find, but it will also be easier to modify and/or update. Assembler gives the advantage of being small and fast, and if you write your own routines you won't get a lot of the garbage dependancies that C and C++ have.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 10-09-2007, 08:10 PM
NeedHelp NeedHelp is offline
Programming God
 
Join Date: May 2006
Posts: 527
Credits: 0
Rep Power: 12
NeedHelp is on a distinguished road
Default

Sounds a bit complicated writing in assembly though. I have no idea how to use it.
__________________
I Need Help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 10-09-2007, 08:25 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 595
Last Blog:
Programs Under the Hoo...
Credits: 174
Rep Power: 10
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default

Writing programs in assembler can be frustrating for large-scale applications, but if you break things up like I said, it shouldn't be impossible. If performance or size is your concern, then use assembler. DO NOT use C++. C++ has way too many libraries that it requires, too many dependencies, and MFC is terrible. Use C if you want to make a powerful OS without too much of a headache.

If assembler is your choice, there are some great tutorials lying around on the Internet; Google is great. Here are some good ones; I suggest you go in order. The last one is the best, but you might want to at least look over the first two to get your feet wet.

Tutorial for Assembler Programming Newbies
A Brief x86 Assembler Tutorial
The Art of Assembly Language Programming

Last edited by dargueta; 10-09-2007 at 08:46 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 10-10-2007, 12:41 AM
v0id's Avatar   
v0id v0id is offline
Super Moderator
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,564
Last Blog:
CherryPy(thon)
Credits: 50
Rep Power: 28
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default

I would also choose to write an OS in Assembly, but not the entire OS. I would create the bootloader in Assembly, and all the other low-level stuff, and then switch to x86-mode, and use C. C is nowadays almost as fast as Assembly. The compilers are getting really good, and if you don't think they aren't good enough, you can always use optimizers and profilers.

I once wrote a bootloader, but if I had continued building on an OS, I would had continued with C - but probably some Assembly also.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
-
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
-
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

I'm always up for a chat, so feel free to contact me...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating an analog clock with ActionScript AfTriX Tutorials 2 01-07-2007 02:19 AM
Creating a Clock AfTriX VB Tutorials 0 01-04-2007 01:53 AM
Creating a backup script NeedHelp General Programming 3 09-07-2006 05:14 AM
Creating Tables leon Database & Database Programming 2 06-12-2006 09:02 AM


All times are GMT -5. The time now is 09:34 PM.

Contest Stats

Xav ........ 1024.41
MeTh0Dz|Reb0rn ........ 974.08
morefood2001 ........ 850.04
John ........ 841.93
WingedPanther ........ 661.52
marwex89 ........ 575.59
Brandon W ........ 447.33
chili5 ........ 292.12
orjan ........ 187.41
Steve.L ........ 180.25

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 79%

Ads