0

Is compiler a Code / Program ?

17th Mar 2017, 8:35 PM
cool_boy12344
cool_boy12344 - avatar
5 Answers
+ 9
A compiler compiles your program so that what you wrote as the program can be executed. Basically, it interprets the syntax of your program to run the program. So it is not either of those (and a code is a program; they are the same thing)
17th Mar 2017, 8:40 PM
J.G.
J.G. - avatar
+ 7
@LittleBigJohna Well, I wish to debate about that. This requires a definition of reading. Reading doesn't have to be done by a human. A computer, even though it used binary, can still read the code because it goes through it, albeit one bit at a time. To me, it is still reading the code, because it goes through the values sequentially and (obviously, because computers work) can operate based off of what it read (the values obtained/read) Feel free to rebuttal my opinion. 😆
17th Mar 2017, 9:41 PM
J.G.
J.G. - avatar
+ 4
a compiler is essentially a translator. It takes the language that the human can understand and translates it to machine code the language that the computer can understand and process.
18th Mar 2017, 2:05 AM
Jason Hoffman
Jason Hoffman - avatar
+ 3
A computer is binary based so it isn't able to actually read the code.
17th Mar 2017, 9:14 PM
LittleBigJohna
+ 3
@J.G. yes you're totally right i should have had a better definition of "reading".
17th Mar 2017, 10:02 PM
LittleBigJohna