What is a Compiling Language

Background

Currently, machines lack the ability to comprehend human languages. They can only comprehend machine language, which is represented by 0s and 1s. Consequently, when you write Javascript code, the machine cannot understand it. This necessitates the translation of each programming language into machine code. The disparity between compiling and interpreting languages is how we convert our source code into machine code.

How compiling languages work

The initial step involves writing our source code in a compiled language. Next, we use a compiler to generate a new file containing our source code converted into machine code. Finally, we can run our program by utilizing the compiled machine code.de

Benefits of using compiling languages

- It is worth noting that compiling languages boasts fast execution times, owing to the use of a compiler that translates source code into machine code. As a result, the program can execute at a high speed since the computer can directly execute the generated machine code without the need for further interpretation or translation.

- When utilizing a compiling language, it is possible to distribute your program without revealing your source code. However, this is only feasible when the same platform is being used.

Drawbacks when using compiling languages

- The compiled file is platform dependent. Meaning if you compile your code using a Mac, you may not be able to execute your compiled file in Windows

- One disadvantage of using a compiling language is that the resulting compiled file is platform-dependent. This implies that if you compile your code using a Mac, you may encounter challenges when attempting to execute the compiled file on a Windows system.

Examples of compiling languages

  • C

  • Go

  • C++

  • Objective-C

Previous
Previous

What is a microprocessor architecture?

Next
Next

Introduction