Entradas

Mostrando entradas de septiembre, 2021

The steps of compilation

Imagen
In this article we are going to introduce the complete compilation process in detail, from the moment we write a file in source code, until we obtain an executable binary, in C language. What is compilation in C language? The compilation process is to convert one or more source code files into executable binary code for a specific hardware / software architecture. This process involves several stages, which we are going to study below. but first, let's define "Source Code" and "Binary Code": Source code is the program that we as programmers write, the plain text that "tells" the computer how to do things. On the other hand, executable binary code, in general for any compiled language, and in particular for C language, is binary code (not text), which in turn can be executed on the computer. I clarify this, because one of the intermediate products of the compilation process is the object code, which although it is binary, cannot be executed and must con...