0

What is compiler? And compiles source code?

Pls explains it to me (beginner)

2nd Jun 2017, 12:33 PM
Alex SCP
Alex SCP - avatar
3 odpowiedzi
+ 6
You are almost right Leon & Alex. A compiler translates the written code from plain text into Hexadecimal code and creates an executable file. This file in assembler code will be processed by your ​computer into binary code so your processor is able to execute it. No more no less. If you look at the first programming languages they where interpretors. Compiling makes your code much much faster then if it needs to be translated step by step.
2nd Jun 2017, 2:24 PM
🇺🇸 Anatoli🇧🇪🇪🇺 ,
🇺🇸 Anatoli🇧🇪🇪🇺 , - avatar
+ 1
Compiler takes all of your code that you created, complies it into machine readable code, checks for proper syntax and Errors so its ready to run. But that's just a guess.
2nd Jun 2017, 12:38 PM
Leon D
Leon D - avatar
+ 1
Thx for the explanation :)
3rd Jun 2017, 2:59 AM
Alex SCP
Alex SCP - avatar