Compiled vs. Interpreted Languages: When Does the Source Code Become Binary?

Some languages require all your code to be compiled before any of the code can be executed; other languages interpret each instruction at the time the code is executed. In fact, compiled languages are generally compiled by a programmer on the programmer’s computer; when the programmer shares (or sells) the software, he or she shares the compiled 0’s and 1’s, not the source code.

When you are writing a program in a compiled language, you must compile the program after each change to the source code before running the program again. Working with a compiled language can be nice because many bugs are found when source code is compiled. These bugs, called compilation errors, ...

Get Learning to Program now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.