Студопедия
Случайная страница | ТОМ-1 | ТОМ-2 | ТОМ-3
АрхитектураБиологияГеографияДругоеИностранные языки
ИнформатикаИсторияКультураЛитератураМатематика
МедицинаМеханикаОбразованиеОхрана трудаПедагогика
ПолитикаПравоПрограммированиеПсихологияРелигия
СоциологияСпортСтроительствоФизикаФилософия
ФинансыХимияЭкологияЭкономикаЭлектроника

Compiling or interpreting

Read the article and answer the questions. | Use the words in the box to complete these sentences. | Microsoft aims Windows 8 storage at enterprise data centers | Match the words in the box with their meanings. | Use the words in the box to complete these sentences. | Read the article and choose the best headline. | USING COMPUTERS | Bar-code reader | CAN A COMPUTER RESPOND | Cloud and Security |


 

A computer program in the form of a human readable, computer programming language is called source code. Source code may be converted into an executable image by a compiler or executed immediately with the aid of an interpreter.

Either compiled or interpreted programs might be executed in a batch process without human interaction, but interpreted programs allow a user to type commands in an interactive session. In this case the programs are the separate commands, whose execution occurs sequentially and thus together. When a language is used to give commands to a software application (such as a shell) it is called a scripting language.

Compilers are used to translate source code from a programming language into either object code or machine code. Object code needs further processing to become machine code and machine code is the central processing unit's native code, ready for execution. Compiled computer programs are commonly referred to as executables, binary images, or simply as binaries — a reference to the binary file format used to store the executable code.

Interpreted computer programs in a batch or interactive session are either decoded and then immediately executed or are decoded into some efficient intermediate representation for future execution. BASIC, Perl, and Python are examples of immediately executed computer programs. Alternatively, Java computer programs are compiled ahead of time and stored as a machine independent code called byte-code. Byte-code is then executed on request by an interpreter called a virtual machine.

The main disadvantage of interpreters is that computer programs run slower than when compiled. Interpreting code is slower than running the compiled version because the interpreter must decode each statement each time it is loaded and then perform the desired action. However, software development may be faster using an interpreter because testing is immediate when the compiling step is omitted. Another disadvantage of interpreters is that at least one must be present on the computer during computer program execution. By contrast, compiled computer programs need no compiler present during execution.

No properties of a programming language require it to be exclusively compiled or exclusively interpreted. The categorization usually reflects the most popular method of language execution. For example, BASIC is thought of as an interpreted language and C a compiled language, despite the existence of BASIC compilers and C interpreters. Some systems use just in time compilation (JIT) whereby sections of the source are compiled 'on the fly' and stored for subsequent executions.

 

1. Answer the questions:

1. How is computer programming language called?

2. May source code be converted into an executable image by a compiler or executed immediately with the aid of an interpreter?

3. What is the main disadvantage of interpreters?

4. Object code needs further processing to become machine code, doesn’t it?

5. Can compiled or interpreted programs be executed in a batch process without human interaction?

 

2. True or false:

1. A computer program in the form of a human readable, computer programming language is called driver.

2. Compilers aren’t used to translate source code from a programming language into either object code or machine code

3. The main disadvantage of interpreters is that computer programs run slower than when compiled.

4. Software development may be slower using an interpreter.

5. Byte-code is then executed on request by an interpreter called a virtual machine.

3. Choose the right preposition:

1) A computer program in the form … a human-readable.

1. off 2. of 3. for

2) Interpreted programs allow a user to type commands … an interactive session.

1. from 2. in 3. at

3)...contrast, compiled computer programs need no compiler present during execution.

1. on 2. at 3. by

4) The categorization usually reflects the most popular method … language execution.

1. in 2. of 3. for

5) Byte-code is then executed on request... an interpreter called a virtual

machine.

1. by 2. in 3. at

4. Choose the following words:

1. A computer … in the form of a human readable, computer programming language is called source code.

1) code 2) program 3) driver

2. Either compiled or interpreted programs might be … in a batch process without human interaction, but interpreted programs allow a user to type commands in an interactive session.

1) used 2) performed 3) executed

3. Byte-code is then executed on request by an interpreter called a … machine.

1) virtual 2) real 3) virtualization

4. Another... of interpreters is that at least one must be present on the computer during computer program execution.

1) lack 2) disadvantage 3) advantage

5. Some systems use just in time compilation (JIT) whereby sections of the source are compiled 'on the fly' and... for subsequent executions.

1) stored 2) save 3) keep

 


Дата добавления: 2015-08-03; просмотров: 69 | Нарушение авторских прав


<== предыдущая страница | следующая страница ==>
Saving Power, Saving Money| Term information technology

mybiblioteka.su - 2015-2024 год. (0.007 сек.)