Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Compilation vs. interpretation - advantages and disadvantages

Sumit Rawal answered on May 7, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • compilation vs. interpretation

  • Compilation vs. interpretation - advantages and disadvantages

    0

    COMPILATION

    INTERPRETATION

    ADVANTAGES

    the execution of the translated code is usually faster;

    only the user has to have the compiler - the end-user may use the code without it;

    the translated code is stored using machine language - as it is very hard to understand it, your own inventions and programming tricks are likely to remain your secret.

    you can run the code as soon as you complete it - there are no additional phases of translation;

    the code is stored using programming language, not machine language - this means that it can be run on computers using different machine languages; you don't compile your code separately for each different architecture.

    DISADVANTAGES

    the compilation itself may be a very time-consuming process - you may not be able to run your code immediately after making an amendment;

    you have to have as many compilers as hardware platforms you want your code to be run on.

    don't expect interpretation to ramp up your code to high speed - your code will share the computer's power with the interpreter, so it can't be really fast;

    both you and the end user have to have the interpreter to run your code.

    What does this all mean for you?

    Python is an interpreted language. This means that it inherits all the described advantages and disadvantages. Of course, it adds some of its unique features to both sets.

    If you want to program in Python, you'll need the Python interpreter. You won't be able to run your code without it. Fortunately, Python is free. This is one of its most important advantages.

    Due to historical reasons, languages designed to be utilized in the interpretation manner are often called scripting languages, while the source programs encoded using them are called scripts. 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 07 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.