English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

If C language programs r used to make os then why to write programs for addition of numbers,printing of specific message,etc..How to make os using c language programs.How to make some s/w using C & to make it in use.

2006-12-20 01:24:06 · 5 answers · asked by Anonymous in Computers & Internet Software

5 answers

Hey - One question at a time.

Try reading this
http://einstein.drexel.edu/courses/CompPhys/General/C_basics/c_tutorial.html
///

2006-12-20 01:27:45 · answer #1 · answered by jan 7 · 2 0

1. Yes! C can be used to write OSes but it is no easy task. Also so part of the OS will usually be written in Assembly Language but the bulk of it is in C. Eg: Linux.
2. An OS is like the foundation of a building. You must have it... what you build on top of it is upto you. Thus the "task" or "duty" of the OS is to provide a suitable platform which can be used to run other programs. Those programs may be as simple as ones for adding two numbers to as complex as a Word Processor or an Action game.

The programs that your write to print messages and add numbers are meant to help you understand concepts and syntax. These programs help you grasp the meaning of printf and scanf so that you are in a position to use these in more complex practical programs.

3. Writing an OS is not an easy job. A large team of expert progammers usually take months or even years to develop a good working OS. For details refer to "Operating System Design & Impliemntation" by Tanenbaum.

2006-12-20 01:47:14 · answer #2 · answered by Bhargav 3 · 0 0

Java is not the best programming language for developing an operating system. When you write an application you mix together code you write yourself with code other people write. You could classify the resulting code four ways, your code (what you wrote), code that is part of the language (like code that handles keywords like new and throw), code from libraries (like code for accessing the file system) and operating system code.(like code for implementing the file system(. In a language like Java the code that is part of the language is quite large. Normally Java is converted by a compiler into a byte code, this code is then interpreted on the host computer. The interpreter is known as the Java Virtual Machine, the JVM. At the heart of an operating system is a kernel that provides access to the processor hardware. This software cannot use anything but the hardware, so it is not possible to have any code that is part of the language. That excludes Java from being used in the kernel. You do not have to compile Java to run inside a JVM, however the nature of the language is that even if it was ran natively it would still need a large body of runtime code that is incompatible with being in the kernel. C# is a language that is very similar to Java in its written form. However C# has a different execution model that allow it to run natively on the processor. It is just about possible to write a kernel in C#, so it would be possible to produce a specialised version of Java to do a similar job. But if you tweaked Java to do that, it would not be Java any more. Most current operating systems are largely implemented in C. However C is an awful language for implementing an operating system today. C provides the low level access you need to implement the kernel. C completely fails to provide the protection programmers need from themselves, no real type safety, no real abstractions. Because of this massive faults have been found in all the operating systems coded in C. ETH have an operating system called Barrelfish. This is compiled from C, because that remains the only practical language. However it differs from other operating systems in the C code not being handcrafted, rather the C code is compiled from languages appropriate from the tasks at hand.

2016-05-22 23:49:20 · answer #3 · answered by Anonymous · 0 0

ooo.. u r one inquisitive soul..
1. Yes there are OS's made in C.. ever heard of UNIX?
2. Its ur will whether to write a program for addition of numbers or not.
3. U can not make OS's using other C programs.. the OS is a program in itself.. well to answer wisely.. u need to learn a bit more about computers first before u start out in the project..
4. U can make a C program using a C editor.. then bundle it up wid the libraries and make it into an exe.. then u r done

2006-12-20 01:40:24 · answer #4 · answered by Desotex 2 · 0 0

I guess you need to know about computing concepts first. With C its almost possible to build any software and program you can imagine under the sun, not just the operating systems.

2006-12-20 01:36:43 · answer #5 · answered by waamax 2 · 0 0

fedest.com, questions and answers