answersLogoWhite

0


Best Answer

Because code to be executed in the web browser has to be able to run on any system (independent of the Operating System, CPU, or browser is being used), it needs to be transmitted in source code form rather than in a compiled object or executable form, because code is compiled for a specific "architecture" (a combination of OS, CPU, and other parameters). This means that compiled code is no longer universal. As a result, software for the web is typically written in so-called "interpreted" languages, which are executed directly from the program source.

Some JavaScript and other interpreters actually do perform an optimization known as precompilation, where the code is first compiled internally for faster execution. This is also known as Just-In-Time (JIT) compilation. However, the compiled form of the code is discarded after use, rather than being permanently stored or transmitted over the network. Therefore, those programming languages are still considered interpreted.

Notable exceptions to this are Java, which uses a compiled format (because compiled Java programs are universal; they run on an architecture-independent "Java Virtual Machine"), and some other plugin-based binary objects such as Flash.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

interpreter

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does a web browser use to execute programs compiler or interpreter?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which produces faster program execution a compiler or pure interpreter?

A compiled program would execute faster than an interpreter running the same code step by step.


What is the function of a interpreter?

Interpreter can immediately execute high level programs. Error are displayed for every instruction.


What is a compiler and an interpreter?

a compiler translates an entire program and then executes it while an interpreter translates and executes one line of a program at time


If you run a programme on compiler and interpreter then how can you come to know which is compiler and which is interpreter?

If source code requires a runtime in order to translate the source code into machine code, executing one statement at a time, then it is interpreted. If the source code has already been converted into machine code in advance, then it is compiled. Compiled code does not require a runtime. Note that compilers do not execute programs, they simply compile them. Your development environment may well execute the machine code once it is compiled, but that is not the job of the compiler, the IDE has simply launched the executable.


What program is the program that contains the language instructions or code to be converted?

There is no such thing: compiler translates but doesn't execute; interpreter executes, but doesn't translate.


Do you need java compiler to execute HTML programs written in javascript?

No, Java and JavaScript are nothing to do with each other, JavaScript is a form of EMCAScript, not Java. Every modern browser comes with a JavaScript engine that is used to understand JavaScript. so there is no need for it, no.


How do you compile and execute programs using command line in DOS?

ad1: install a compiler ad2: just enter the program's name at the prompt


What is the difference between a compiler and an interpretor?

A compiler will read your entire source code and convert it into a language specific to the environment it's intended to run on. The plan is to have the compiler analyze the code and build an efficient application.Examples of languages that are compiled: C, C++, JavaAn interpreter will read your source code, usually line by line, and execute each command one at a time. This is slower and less efficient, but very good for teaching programming.Examples of languages that are interpreted: Basic, Turing, LogoA compiler translates a high-level language to a low level language all at once. An interpreter only translates one high-level statement at a time.


How do you compile and execute a 16 bit compiler program from a command prompt?

Compiler-dependent. If you have Turbo C, it will be command TCC


Explain the statement there is more to java than the language?

All programming languages are abstract things - collections of rules which dictate how symbols may form words, how words may form statements, and how statements may form programs. Programming languages need "other stuff" in order to actually be useful. For most languages this will include either a compiler or an interpreter which can turn source code into executable programs. Java's "other stuff" includes a compiler, which turns Java source code into Java byte code, and the Java Virtual Machine (JVM), which allows Java byte code to execute on your computer.


What converts and executes one statement at a time in computers?

There are number of compilers that are used . A compiler that executes and translates on statement at time is called interpreter. An interpreter is a compiler that executes one line at a time and if an error occurs it need to be corrected at the same point of time else the further execution will stop.


Why the compiler start its execution from main function?

i think as the compiler bind all the functions and source code starting from main hence all that make the compiler directed to execute it from the very same point