Monday, May 24, 2010

Why is it c-language important adove all language?

Numerous operating systems, such as Unix, Linux and Windows kernel are all written in C. C was designed to be close to the hardware and still portable with recompile to allow writing system code.





In addition to being at the right place in the right time, it's linking and call systems are easy to reproduce in other languages. This allows other languages to use libraries written in C. It's common to see other languages like Java, VB and Fortran to have the ability to call a C library (such as a DLL in Windows or .so in Unix).





Even today in the embedded field, it's not unusual to have a C compiler as your only language option. C doesn't need a VM or any lower level library to work. It compiles straight to machine code and can be used on the most resource limited projects.





Now, this isn't to say that C is the best language in all uses. In fact it is showing it's age. For common projects on a desktop with an OS where using a VM is a reasonable option I would say C is not the best choice. I would strongly suggest a newer language such as Java, C# or Python, mainly for their extensive libraries. No sense re-inventing the wheel.

Why is it c-language important adove all language?
Mikaljr was right. C was invented in the 60 years of 20th century and many nowadays systems or tools is developed or based on C. And compare to other advanced language such as Java, C provide envionment to let programmers take a direct operation on machine.So it's still irreplaceable.
Reply:Apparently it is more important than English, too.





To answer your question, the majority of systems in existence are written in C, including the military and communications.





It is important for no other reason than it is still prevalent.
Reply:Haha... it is just because most everything nowadays is written in C, thats all.


No comments:

Post a Comment