There may be separate compilers for different operating systems like Windows or Mac OS. ![]() ![]() In plain language, the compiler converts a program written in a human-understandable-readable format into a machine-readable format. There are some compilers that can generate machine language directly and there are some compilers that first translate the high-level language you have written your program in, into an intermediate “assembly language” that is later translated into machine code by an assembly program or an assembler. The compiler can also check your code for errors. What the compiler generates is the machine code. Whether a compiler is inbuilt or you need to use it as a separate, stand-alone tool, whenever you want to run your program on a computer or a mobile phone, it needs to be first compiled and changed into some sort of machine code. Sometimes they need to be run separately as standalone tools. Sometimes a compiler is inbuilt into the software that you’re using to write your program. ![]() These text files that contain your programming code first need to be converted into a set of machine language instructions before they can be understood by a computer or any other machine that behaves like a computer (for example your mobile phone). Although most computers and other devices can easily read text files, when it comes to executing instructions in a text file, every computer falls short of expectations. When you are writing a program in a language like C++, you mostly write it as text.
0 Comments
Leave a Reply. |