Watching:

Programming Foundations: Compiled and Interpreted Languages


show more In this video in the developer and programming foundations series, you will learn how to convert source code into computer code in one of two ways: either by compiling the source code or interpreting the source code. This video will teach you how to identify the difference between compiled and interpreted languages, and the benefits of each. Find out if JavaScript is a compiled or an interpreted language! show less
please wait ...

Compiled and interpreted languages

So we need to get our source code converted into machine code somehow before it can run and there are two main ways of doing this: what's called compiling the source code and what's called interpreting the source code. Now luckily, this is not a big decision you have to worry about. Most languages you'll deal with will naturally fall into one or the other, but it is worth knowing the difference. So let's have a simple scenario. Let's say it's just you and me. You have your computer and I have my computer and you're going to write a program that you want me to run.

Now, with a compiled language, what happens is you write your source code and then you have a program called a compiler that will go through that source code and create a separate file that contains the machine code, and you just give me that file. This end result is sometimes referred to as an executable or an executable file because I can directly execute it. I can now just run your program. You keep...

Compiled and interpreted languages
Video duration: 6m 4s 4h 47m Beginner

Viewers:

In this video in the developer and programming foundations series, you will learn how to convert source code into computer code in one of two ways: either by compiling the source code or interpreting the source code. This video will teach you how to identify the difference between compiled and interpreted languages, and the benefits of each. Find out if JavaScript is a compiled or an interpreted language!

Subjects:
Developer Web
Author:
please wait ...