Programming Basics #5 Compile And Interpreted Languages

Programming Basics #5 Compile And Interpreted Languages


compile an interpreted languages all source code have to be converted to
machine code and are two ways on doing this the first
is compiling the source code and the second is interpreting the
source code let’s take an example for you understand
better the STU concepts consider this you have your computer and
I have my computer and you are going to write a program for
me to run it with the compiled language you write your source code and you have
a program called compiler that will go to that source code and
create a separate file that contains the machine code then you just sent me that file this
file you just send me is also knowing has an execute a bull
file because now I can directly executed and run your program you keep your
source code and I never see it with the interpreter language you don’t compile the source code to send to
me you just give me a copy soul I need on my machine an interpreter whenever I want to run your program the
interpreter is different from the compiler he does this on the fly we can think is
going to your source code line by line processing on the moment
and is not saved as a separate machine code file you probably already used an interpreter
language every time you surf the web in go to a
web page with JavaScript then you already used this is what being
happening the JavaScript and another web files
like images and web pages has been sent to your machine over the
web a source code in the browser have interpreter for you
to be able to see it now let’s see the goods and bad sides
from one to another the compiled language is ready to be
executed ball is ready to run he can be optimized for
the CPU so he can be faster and you don’t have to send your source
code is private downside is not cross platform if you
compile on PC he won’t run on a Mac is inflexible
needs to be compiled even for different processors in the same platform and you have to make an extra step
because you have to compile always whenever you want to test your program now in the interpreter interpreter
languages are cross-platform because you don’t provide machine code
you just send the source code and let the other side to take care of
it it’s more portable to be testing other platforms it’s also
easier to test because you just write the source code
and then rotted letting the interpreter to converting it
and it is easier to debug because you always have access to the
source code sides when every who needs to run your
program on their machine has to happen interpreter on that
language to be able to run it it’s also can be slower because you have
to interpret their every time the program runs and the source code is public now because they are good things on the
compiled an interpreter languages it’s also a third way on doing this
instead on the compiler module when all the work is done up front but
can be a little inflexible or the interpreter module where all the
work is done on the receiver side but can be a little slower you can do
half in half before you send anything you compile
part of the way which is called intermedia language
which is still not machine code but can be portable across platforms and
then who receive this file can take the last
step to take to the machine code on their computers this procedure is also known as jet
compilation and this intermediate language is also
known as byte code so this process has to happen somehow is
just how much in your machine and how much on mine now which link which are known as
compiled languages and what are considered interpreted
languages for example see c plus plus objective-c are considered compiled languages and
the compiler can be downloaded for free but is also integrated into integrated
environment applications on the interpreted side are languages
like PHP JavaScript ActionScript in most
languages with the script word in the end are mostly interpreted languages and
languages like Java C sharp Python vb.net uses the intermedia hybrid approach this is something to take consideration if your priority is
maximum speed and in one single platform you should choose a compiled language if
the idea is to be moving your coat across platforms you probably be interested in the
interpreted more usually you are driven in what you
need to do build iPhone or Android haps Windows
applications or dynamic web sites or in our case
learning the basics of programming then you let the decision to choose the
appropriate language compiled interpreted or intermedia 1

Leave a Reply

Your email address will not be published. Required fields are marked *