answersLogoWhite

0

Give an example of a compiler?

Updated: 8/10/2023
User Avatar

Wiki User

13y ago

Best Answer

A programming language can be made into a working program either by Interpretation or compilation. There isn't a Compiler and an Interpreter language. But any code any be made into a program by compiling it using an Interpreter (checks a line of your code at a time and stops at errors) or compiler (checks the entire code at a time and displays all errors at the end).

As the Answer above states any language can be Interpreted (the program is executed one line at a time, and errors are reported when and if they occur) and any language can be compiled (the whole program is rendered as a single executable file, and run in one go).

But some languages are usually interpreted (though they may sometimes be compiled) and some languages are usually compiled (though they may be sometimes interpreted).

An interpreted language is more easily debugged (and errors will usually be less disastrous). A compiled language runs faster (and the executable file will be smaller and more portable).

So interpreted languages tend to include languages used for teaching and also languages used for robotic control (when you drive robots you will often want them to do things one step at a time).

BASIC is a teaching language, it is usually interpreted. FORTH (for radio telescopes) and LOGO (for floor crawlers) are other languages which are usually interpreted, since they are robotic.

Languages which are used for commercial programming will nearly always be compiled. C, C++, C# are nearly always compiled, and so is Pascal and all its derivatives (Oberon, Delphi &c.).

User Avatar

Wiki User

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

Wiki User

13y ago

People have made, and continue to make, many new compilers.

Some of the most famous and influential are:

* A-0, the first compiler, written by Rear Admiral Grace Murray Hopper in 1952 at Remington Rand corporation, which later developed into COBOL.

* The FORTRAN team led by John Backus at IBM in 1957

* The first self-hosting compiler was created for Lisp by Tim Hart and Mike Levin at MIT in 1962.

* Niklaus Wirth's PL/0 compiler, used to teach compiler construction in the 1970s.

* Simula, invented in the late 1960s by Nygaard and Dahl as a superset of Algol 60, was the first language designed to support object-oriented programming.

* The first implementation of the C Programming language was developed by Dennis Ritchie and Ken Thompson at Bell Labs between 1969 and 1973.

* Forth, first implemented by Chuck Moore. Released to other programmers in the early 1970s.

* UCSD Pascal around 1977

* Smalltalk

* Borland C++ (now Embarcadero C++)

* Borland Turbo Pascal

* gcc

* ...

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

Java is a typical example. The high-level source code is compiled to Java byte code suitable for low-level interpretation by the Java virtual machine, which produces the actual machine code. The byte code is highly portable; once compiled it can be executed upon any physical machine with a suitable Java virtual machine implementation.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

Java Language is both Interpreted and Compiled.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

Some examples include Java compiler, C compiler, C# compiler, Pascal compiler, etc. - basically, many different programming languages include compilers.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Give an example of a compiler?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you give comments in C programming?

add "//" before starting your comment (without quotes) and the compiler won't process it, it will be treated as commentfor example// this is an example of writing comments.


What is the use of compiler?

Compiler is used to convert a language readable in user domain into the tasks which is understood by the machine. example: C++ compiler compiles program written in a langauge understood by user which compiles this to a task which can be executed by a computer's processor.


How many types of compiler naming in list?

cross compiler . hybird compiler . post compiler. ideal compiler. intelligence compiler.


What is a hybrid compiler?

Hybrid compiler is a compiler which translates a human readable source code to an intermediate byte code for later interpretation. So these languages do have both features of a compiler and an interpreter. These types of compilers are commonly known as Just In-time Compilers (JIT). Java is one good example for these types of compilers.


What are built in function?

Write in Pascal is an example: it doesn't come from a library, it is built-in into the compiler.


What are built-in functions?

Write in Pascal is an example: it doesn't come from a library, it is built-in into the compiler.


What is the advantage of a translator that is source to source compiler with C as target language?

For example, if you don't have a FooBar-language compiler, but have a FooBar-to-C translator, then you still can use FooBar-language programs.


What is DML Compiler?

What is difference between Compiler and DML Compiler


What are the difference between a compiler design and a compiler?

In Compiler there is no design word ,whereas in compiler design there is design word


What does this compiler error mean ' ' in java?

Simply, the error that your compiler catches is called compiler error. Doesn't matter if you are in Eclipse, NetBeans or Intellij IDEA, all these IDE's are very smart. They can detect if you made any any mistakes in your program. Common compiler errors are- -When you try and access a variable that is out of scope -When you forget to give a semicolon. -When you will try to use a reserved keyword like - return. -Any syntax error that your compiler might find suspicious, will cause compiler to throw an error.


What are the responsibilities of a compiler?

What are the responsibities of a compiler


What are the four types of grammars used in compiler?

-Single pass compiler -Multi pass compiler -Cross compiler -Optimizing compiler