Why C in Operating Systems?

vgchg.JPG

 

Have you ever wondered why most of the Operating Systems we use are developed with C language? Ok, let me tell you. Actually there are many advantages of writing an operating system in a high-level language such as C. Firstly, the number of programming errors is reduced and the code becomes more compact by programming at a higher abstraction which the C language provides to the programmer. Secondly, high-level languages like C language provide superior features such as type checking, bounds-checking etc. which again helps to check and minimize programming errors and loopholes that may occur in the security. Moreover, C language has powerful programming environment that includes tools such as debuggers and performance profilers that could be handy for developing code.

Though it may have some disadvantages because the programmer is distanced from the underlying machine which could cause a few problems. There can be a performance overhead introduced by the compiler and runtime system used for the C language. Certain operations and instructions that are available at the machine-level may not be accessed from the language level, thus it limits some of the functionality available to the programmer.

 

But the disadvantage is very tiny against the advantage hence still C is preferred for the design of the Operating System.

Bookmark and Share:
Find some related Blogs

  • Share/Bookmark

Leave a Reply