0% found this document useful (0 votes)
36 views2 pages

Research Work (Compiler)

Uploaded by

missdoku18
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views2 pages

Research Work (Compiler)

Uploaded by

missdoku18
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

What Is A Compiler?

In computing, a compiler is a computer program that translates computer code written in


one programming language (the source language) into another language (the target language). The
name "compiler" is primarily used for programs that translate source code from a high-level
programming language to a low-level programming language (e.g. assembly language, object code,
or machine code) to create an executable program.

What Is An Interpreter?

an interpreter is a computer program that directly executes instructions written in a programming


or scripting language, without requiring them previously to have been compiled into a machine
language program.

Differences Between Compiler And Interpreter

Compiler

 Translation Method: Translates the entire program at once into machine code.

 Execution: Generates an executable file that can be run independently of the source code.

 Speed: Generally faster execution since the entire program is translated before execution.

 Error Handling: Displays all errors after compilation, making it easier to debug before
running the program.

 Memory Usage: Requires more memory as it generates object code.

 Examples: Used by languages like C, C++, and Java.

Interpreter

 Translation Method: Translates the program line-by-line into


machine code.
 Execution: Executes the code directly without generating an
intermediate executable file.
 Speed: Slower execution since each line is translated and executed
one at a time.
 Error Handling: Stops execution when an error is encountered,
making it easier to debug during runtime.
 Memory Usage: More memory efficient as it does not generate
object code.
 Examples: Used by languages like Python, JavaScript, and Ruby.

HISTORY OF JAVASCRIPT

Brendan Eich developed JavaScript, a computer language, in just


ten days in May 1995. Initially called Mocha, then LiveScript, it
finally became known as JavaScript. It was designed for the client-
side of websites to add dynamic and interactive elements to static
HTML pages.
JavaScript was first implemented in Netscape Navigator, the most
popular browser at the time. Microsoft quickly adopted it for Internet
Explorer. Its ease of use and unique position as the only client-side
scripting language made JavaScript popular among web developers.

Over the years, JavaScript’s popularity grew, and it was used to


create a variety of web applications, including online games, dynamic
menus, and form validation. A new version, ECMAScript 4, was planned in
2002 but was abandoned due to disagreements among browser vendors.

Today, JavaScript is one of the most popular programming


languages, used by about 95% of websites. It is not only crucial for
web development but also for creating server-side applications,
desktop and mobile apps, and even programming robots and
hardware.

You might also like