Eli5: If a compiler is a program that converts your code into binary form for the computer, unless my understanding is incorrect and it isn’t just a program, wouldn’t the compiler also need a compiler to run it since how do you run a program without a compiler?

1.07K views

Eli5: If a compiler is a program that converts your code into binary form for the computer, unless my understanding is incorrect and it isn’t just a program, wouldn’t the compiler also need a compiler to run it since how do you run a program without a compiler?

In: 360

25 Answers

Anonymous 0 Comments

Not got much experience with CS, but if I remember correctly, it kind of is a bit like if I was trying to tell a French person how to get to the store when you only speak English and they only speak French.

If your instructions are:
Take the third left
Walk 500 metres
Turn right

You could put it into a translator and get:
Prendre la troisième à gauche
Marcher 500 mètres
Tourner à droite

Your computer in this scenario speaks French and most programmers speak English. The compiler breaks down the code into the language that the machine understands.

You are viewing 1 out of 25 answers, click here to view all answers.