Friday 18 January 2019

Difference Between Compiler and Interpreter

    Compiler
Compiler checks the error at a time
Compiler reads the source code, outputs executable code
Translates software written in a higher-level language into instructions that computer can understand. It converts the text that a programmer writes into a format the CPU can understand.
Requires more memory
Program execution is fast and the executable result is some form of machine-specific binary code.
compiler takes entire program and converts it into object code which is typically stored in a file. The object code is also refereed as binary code and can be directly executed by the machine after linking
Example: C, C++
    
     Interpreter
Interpreter checks the error line by line.
    The interpreter converts the source code line-by-line during RUN     Time.
Interpret completely translates a program written in a high-level language into machine level language.
Requires less memory compared to compiler.
Program execution is relatively slow compared to compiler
An Interpreter directly executes instructions written in a programming or scripting language without previously converting them to an object code or machine code.
Example: Python and Ruby

1 comment:

  1. You don't realize how quickly technology is changing. Data science is highly technical and is therefore in high demand. A career in data science will open up many lucrative job opportunities. So, if you have been wanting to start your career in Data Science, now is the best time to enroll in a data science program with one of the best data science training institute in noida.

    ReplyDelete

apply function in R

1) apply function: It takes 3 arguments matrix,margin and function.. Example: m<-matrix(c(1,2,3,4),nrow=2,ncol=2) m #1 indicates it is ap...