What's the difference between compiled and interpreted language?

前端 未结 7 1433
Happy的楠姐
Happy的楠姐 2020-12-02 03:46

After reading some material on this subject I\'m still not sure what the difference between a compiled language and an interpreted language is. I was told this is one of the

7条回答
  •  孤街浪徒
    2020-12-02 04:16

    Here is the Basic Difference between Compiler vs Interpreter Language.

    Compiler Language

    • Takes entire program as single input and converts it into object code which is stored in the file.
    • Intermediate Object code is generated
    • e.g: C,C++
    • Compiled programs run faster because compilation is done before execution.
    • Memory requirement is more due to the creation of object code.
    • Error are displayed after the entire program is compiled
    • Source code ---Compiler ---Machine Code ---Output

    Interpreter Language:

    • Takes single instruction as single input and executes instructions.
    • Intermediate Object code is NOT generated
    • e.g: Perl, Python, Matlab
    • Interpreted programs run slower because compilation and execution take place simultaneously.
    • Memory requirement is less.
    • Error are displayed for every single instruction.
    • Source Code ---Interpreter ---Output

提交回复
热议问题