In which languages can an OS be created like UNIX-C language (other than assembly languages)? the criteria for the language? can a scripting language be used to create an OS ?(like OS ununium based on python )
I know C can. Scripting languages can't unless you use something along the lines of Cython; even then I don't know if they have the capacity to make one. No matter what, it has to be compiled to a very low level language or straight binary.
You can use any programming language to create an os ,but the problem is device drivers .You need assembly level language.That is why c is used.Assembly language can be Embedded in c,whereas this not case in python.
For example, Linux [the kernel] is *mostly* written in C, but it still has some assembly parts. Very little, though. I reckon there's a documentary film about Linus explaining this.. somewhere.
C or C++ or both, since they were created for that :) Like my fellow companions said here, C is very good for this since it works with Assembly withing it, so therefore you can program in assembly languahge to command certain things, as device drivers. I believe there are pretty much lots of tools to work with, that can help out to make an OS, whether you use C, C++ or any opther language, just need to find those that access your interest :)
C was designed specifically for that purpose though i think c++ can be used too. Assembly must be used at some point
Join our real-time social learning platform and learn together with your friends!