C ++ on operating systems: no kernels (the main bit that really does all the unpleasant work, such as memory management and drivers) that I know about are written in C ++, just C. Linux is written in C, and also Windows.
See here: What languages ββare Windows, Mac OS X, and Linux?
Applications (not the kernel bits that make up the OS) these days are written in any language that is best suited for the job.
You chose C ++ if the following was important to you:
- You want to make heavy use of classes and inheritance
- Do you plan to work on only one OS
- You want reasonable performance
- Your developers already know C ++
- You want to divide the work on such components into different people or teams (every time a class or interface is implemented),
You can do all of the above with C, portability between platforms is still a problem (C ++ is equally platform dependent, like most C). In C, you have to be more strict using static and dynamic analysis tools. An easier memory leak in C than in C ++, too.
Iannorton
source share