Студопедия

КАТЕГОРИИ:


Архитектура-(3434)Астрономия-(809)Биология-(7483)Биотехнологии-(1457)Военное дело-(14632)Высокие технологии-(1363)География-(913)Геология-(1438)Государство-(451)Демография-(1065)Дом-(47672)Журналистика и СМИ-(912)Изобретательство-(14524)Иностранные языки-(4268)Информатика-(17799)Искусство-(1338)История-(13644)Компьютеры-(11121)Косметика-(55)Кулинария-(373)Культура-(8427)Лингвистика-(374)Литература-(1642)Маркетинг-(23702)Математика-(16968)Машиностроение-(1700)Медицина-(12668)Менеджмент-(24684)Механика-(15423)Науковедение-(506)Образование-(11852)Охрана труда-(3308)Педагогика-(5571)Полиграфия-(1312)Политика-(7869)Право-(5454)Приборостроение-(1369)Программирование-(2801)Производство-(97182)Промышленность-(8706)Психология-(18388)Религия-(3217)Связь-(10668)Сельское хозяйство-(299)Социология-(6455)Спорт-(42831)Строительство-(4793)Торговля-(5050)Транспорт-(2929)Туризм-(1568)Физика-(3942)Философия-(17015)Финансы-(26596)Химия-(22929)Экология-(12095)Экономика-(9961)Электроника-(8441)Электротехника-(4623)Энергетика-(12629)Юриспруденция-(1492)Ядерная техника-(1748)

Compiler Language




Assembler Language

Machine Language

In the machine-language programming level, the programmer writes the program exactly as stored in the computer. Very little programming is done at this level as it is extremely tedious, and when errors are found it is hard to correct them. The machine-language level is useful in the initial operation of a computer when no other techniques are available, in repair of a faulty computer, and in the debugging of programs when other technique fail and the program must be examined at the machine-language level.

In the assembler language level, the programmer generally writes one program instruction or one program constant for each memory location occupied by the program. Thus, the programmer has the same direct control over the computer operation that he would have if he wrote in machine language. However, the assembler language offers the programmer many aids such as the following.

(A) The form of the assembler language is easier for humans to use. For example, each instruction in assembler language is divided into a few easily understood fields; each instruction in machine language is a string of digits not easily understood. Thus, the addition of one number to another might have the form AD X3 in assembler language and 34071245 in machine language.

(B) In assembler language, much of the detail of the machine language can be ignored.

The compiler language isan intermediate step between common human language and machine language, and is an attempt to satisfy both human and computer requirements. Thus, humans should find it easy and effective to program a computer task in compiler language, while means must be provided to automatically and quickly transform that program into machine language.

The time and effort to write a typical program in compiler language is a small fraction of the time to write the equivalent program in assembler language. Programs in commonly used compiler languages can be processed and executed in a large variety of computers, while assembler languages are usually limited to a given machine or family of machines.

Вопросы и задания.

I. Дайте ответы на следующие вопросы:

1. What is programming?

2. What does the computer action depend on?

3. What should be known before preparing a program on a specific language for execution by a specific computer?

4. What operations does the computer perform during execution of the program?

II. Дополните предложения, руководствуясь содержанием текста:

1. Very little programming is done at...... level as it is extremely tedious.

2. Programs in commonly used...... can be processed in a large variety of computers.

3. The...... level is useful in the initial operation of a computer.

4. The …... offers the programmer many aids.

5. To write a typical program in compiler language is much quicker than to write the equivalent program in......

III. Найдите неправильные утверждения:

1. The choice of hardware and software depends on such factors as cost, speed, ease of maintenance and flexibility.

2. The physical computer equipment is termed software.

3. A computer has the ability to automatically execute a program stored within itself.

4. The machine-language level is useful when no other techniques are available.

5. An instruction in assembler language is a string of digits not easily understood.

IV. Выберите подходящее по смыслу слово или словосочетание и дополните предложения:

1. A given computer... can be provided by a combination of hardware and software. (maintenance, capability, repair, instruction)

2. Very little programming is done at the machine -language level as it is extremely … (useful, tedious, typical, unique)

3. The assembler language offers the programmer many … (details, attempts, aids, fields)

4. The machine-language level is useful in the … operation of a computer. (final, tedious, initial, available)

5. In … level the programmer generally writes one program instruction. (the machine language, the assembler language, the compiler language, a specific language)

6. An attempt to satisfy both human and computer requirements is … (machine language, the assembler language, the compiler language, the variety of languages)

7. The programs stored within the computer are termed … (hardware, machine language, memory location, software)

8. Programming is the process of preparing … which yield the solution of a specific problem.(method of operation, set of instructions, execution of a program, string of digits)

9. A computer has the ability to automatically... the program stored within itself.(satisfy, execute, choose, ignore)

10. Each computer has each programming language has its own … (hardware, execution, instruction repertoire, requirements)

11. The physical part of a computer is termed … (hardware, machine language, memory locations, software)

 

 




Поделиться с друзьями:


Дата добавления: 2015-03-29; Просмотров: 500; Нарушение авторских прав?; Мы поможем в написании вашей работы!


Нам важно ваше мнение! Был ли полезен опубликованный материал? Да | Нет



studopedia.su - Студопедия (2013 - 2024) год. Все материалы представленные на сайте исключительно с целью ознакомления читателями и не преследуют коммерческих целей или нарушение авторских прав! Последнее добавление




Генерация страницы за: 0.008 сек.