Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 19th, 2006, 4:03 PM   #1
NightShade01
Programmer
 
Join Date: Oct 2005
Posts: 52
Rep Power: 4 NightShade01 is on a distinguished road
OS Design

Ok here is a complex question....what languages is it possible to write and operating system in. It doesn't matter whether or not it's a practical OS just a matter of if it's possible. I was posed the question in a class today and only C++ was determined to be a valid answer. Java didn't work because it comlies to slowly and you would need a way to get the JRE on the computer before but i couldn't find a reason that VB.NET wouldn't work. Thoughts anyone...?
NightShade01 is offline   Reply With Quote
Old Oct 19th, 2006, 4:09 PM   #2
AntiNinja
Hobbyist Programmer
 
AntiNinja's Avatar
 
Join Date: Jun 2006
Location: The States
Posts: 101
Rep Power: 3 AntiNinja is on a distinguished road
Send a message via AIM to AntiNinja Send a message via Yahoo to AntiNinja
Assembly...
__________________
Pain is just weakness leaving the body.
AntiNinja is offline   Reply With Quote
Old Oct 19th, 2006, 4:38 PM   #3
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3 King is on a distinguished road
VB would not even come close to working; it is a very high level language and just won't work.

C/C++/Assembly are going to be the optimal choices.
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Old Oct 19th, 2006, 4:59 PM   #4
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
C++, C or ASM.

thread moved to the lounge.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Oct 19th, 2006, 5:34 PM   #5
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
C, C++, Assembly or Pascal. VB .Net is, just like Java, an interpretted language. Besides that, it depends heavily on the Windows API.
Polyphemus_ is offline   Reply With Quote
Old Oct 19th, 2006, 5:45 PM   #6
Sane
Banned
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,101
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
Polyphemus. Why Pascal? I thought that was a very high level language that can't do much stuff, primarily intended for teaching?
Sane is offline   Reply With Quote
Old Oct 19th, 2006, 5:50 PM   #7
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 439
Rep Power: 4 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
I would venture to say that theoretically you could write an OS in any language. However it would be indirectly and would be a lengthier process. For instance, using any language whether interpreted, high-level, low-level, etc. you could produce a compiler which takes your new code and translates it into the machine code that you would need in order to make the OS. This of course would be the equivalent of creating an assembler. So as was stated before an assembler would be the most obvious choice. In regards to Java if you created a bootstrap loader to get the JVM onto the harddisk and a small shell to launch it then you could have a Java enabled OS. An example of a non C++ OS is MenuetOS which is written entirely in assembly code.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote
Old Oct 19th, 2006, 7:29 PM   #8
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 5 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
You can write an OS in many languages. Everything from machine code to say, OBERON, C# or even Java (look at jNode and Singularity.) It really depends on the language implentation if you're considering a language such as that (for example, Singularity is a system built on nothing more than a primitive runtime for C# and a garbage collector, both written in C#. The actual kernel is written in C# entirely and thus pretty much the entire OS.)
__________________
os: mac os 10.5.4
revision control: git
editor: emacs

site
Mad_guy is offline   Reply With Quote
Old Oct 19th, 2006, 8:38 PM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
If you write an OS that relies on someone else's code to reach the machine, then YOU didn't write an OS. You wrote a services layer. Personally, I used assembler in all of mine, but I needed maximal performance in a real-time environment. I'd be happy to use C in the outer layers.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 19th, 2006, 8:50 PM   #10
a thing
Unverified User
 
a thing's Avatar
 
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0 a thing is on a distinguished road
1. Since when are OSs written in one language?
2. I know Linux is written in C with some Assembler. Most of the lower level GNU tools (probably a better term for that, I'm refering to stuff like the shell, cat, grep) that work with it are in C.
__________________
Warning: My posts may change (dramatically) within the first 15 minutes they're posted.
Got 'Nux?—GNU/Linux and other free software support.
It's GNU/Linux, not just Linux.
a thing is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Program Design / Layout john Wesley Existing Project Development 11 Jul 28th, 2006 11:29 AM
The Black Art of Video Game Console Design lostcauz Book Reviews 0 Apr 26th, 2006 8:31 PM
Web design by Artjom and Arthur Sharafejev artjom Other Web Development Languages 5 Mar 30th, 2006 1:22 PM
Design Patterns In PHP Eryk PHP 10 Feb 5th, 2006 10:26 PM
New Design & Forum Bday big_k105 Community Announcements and Feedback 21 Apr 12th, 2005 10:54 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:38 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC