Оцените презентацию от 1 до 5 баллов!
Тип файла:
ppt / pptx (powerpoint)
Всего слайдов:
14 слайдов
Для класса:
1,2,3,4,5,6,7,8,9,10,11
Размер файла:
305.38 kB
Просмотров:
77
Скачиваний:
0
Автор:
неизвестен
Слайды и текст к этой презентации:
№1 слайд![](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img0.jpg)
№2 слайд![](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img1.jpg)
№3 слайд![Programming Languages When](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img2.jpg)
Содержание слайда: Programming Languages
When computers were first invented they had to be programmed in their own natural language, i.e. binary machine code.
Later, programmers developed more sophisticated systems to make programming easier and more efficient.
Assembly languages were developed as the 2nd generation of languages.
High-level languages (3rd & 4th generation) later made programming even more productive.
№4 слайд![](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img3.jpg)
№5 слайд![The Generations](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img4.jpg)
Содержание слайда: The Generations
№6 слайд![Machine Code These are the](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img5.jpg)
Содержание слайда: Machine Code
These are the only kind of instructions the CPU can directly understand and execute.
Stream of binary bit patterns that represent the instructions that are to be carried out.
The binary bit patterns are decoded by the processor’s logic circuits.
They are then acted upon or executed, one after another.
Machine code is a type of low-level code.
№7 слайд![Machine Code Writing programs](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img6.jpg)
Содержание слайда: Machine Code
Writing programs in machine code is difficult and time-consuming.
It’s difficult to remember all the bit patterns and what they do.
Each operation of the processor has to be defined.
Each machine instruction causes the processor to carry out just one operation.
Nearly all machine code instructions consist of two parts:
An opcode, which tells the processor what to do
An operand, which tells the processor what to do it to.
№8 слайд![Instruction Set This is the](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img7.jpg)
Содержание слайда: Instruction Set
This is the full set of machine code instructions, which the CPU “understands” and can execute directly without translation.
№9 слайд![Assembly Languages The](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img8.jpg)
Содержание слайда: Assembly Languages
The commands are still the basic CPU instruction set, but in an easier-to-read form.
One assembly language instruction corresponds to one machine code instruction.
Assembly language instructions have to be translated into machine code by an Assembler before the CPU can execute them.
№10 слайд![Assembly Languages Low-Level](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img9.jpg)
Содержание слайда: Assembly Languages
Low-Level Language
As with machine language, each instruction causes just one processor operation
These use mnemonic instructions (op-codes) instead of binary codes and hex or decimal in operands.
These make programming less error prone and more productive than programming in pure binary code.
№11 слайд![High-Level Languages](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img10.jpg)
Содержание слайда: High-Level Languages
High-Level languages do not have the same one-to-one correspondence between commands and machine code instructions as an assembler.
A high-level command may represent several machine code instructions:
In a high-level language we can multiply two numbers together in one command.
At machine level this is not possible and it has to be done by repeated addition.
№12 слайд![High Level Languages High](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img11.jpg)
Содержание слайда: High Level Languages
High level commands have to be turned into binary instructions the machine can understand; this is translation.
There are two basic ways of translating high-level code
Complier: converts the whole code into machine code before running it
Interpreter: converts the code one instruction at a time, running each instruction before translating the next.
№13 слайд![High-Level Languages Source](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img12.jpg)
Содержание слайда: High-Level Languages
Source code is the code written by the programmer.
A compiler translates this source code into an object code in machine language. Object code runs independently of the source code and translator.
An interpreter does not create object code so the source code has to be translated each time it is run.
This means interpreted languages need the source code and translator present every time the code is run.
№14 слайд![https habrahabr.ru post](/documents_6/b7b8bca3a71c2224ded0a0d99e4c1c28/img13.jpg)
Содержание слайда: https://habrahabr.ru/post/257331/