© boardworks ltd 20131 of 8 programming tools teacher’s notes in the notes page flash activity...

8
© Boardworks Ltd 2013 1 of 8 Programming tools Teacher’s notes in the Notes Page Flash activity (these are not editable) Icons: Algorithms and programming language Worksheet available

Upload: daisy-julia-taylor

Post on 30-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: © Boardworks Ltd 20131 of 8 Programming tools Teacher’s notes in the Notes Page Flash activity (these are not editable) Icons: Algorithms and programming

© Boardworks Ltd 20131 of 8

Programming tools

Teacher’s notes in the Notes Page

Flash activity (these are not editable)Icons:

Algorithms and programming language

Worksheet available

Page 2: © Boardworks Ltd 20131 of 8 Programming tools Teacher’s notes in the Notes Page Flash activity (these are not editable) Icons: Algorithms and programming

© Boardworks Ltd 20132 of 8

By the end of this presentation you will have learned:

to identify different programming tools

what machine code is

different types of programming languages

what translators do

what assemblers, compilers and interpreters are

which tools and facilities are included in an IDE.

Learning objectives

Page 3: © Boardworks Ltd 20131 of 8 Programming tools Teacher’s notes in the Notes Page Flash activity (these are not editable) Icons: Algorithms and programming

© Boardworks Ltd 20133 of 8

Translators

The computer cannot understand high level languages, and so translators are required to convert the program instructions into machine code. A single high level instruction can convert into hundreds of individual machine code instructions.

If you were on holiday in a foreign country and you did not know the language, you might use a translator. A translator takes the words from one language and converts them into another.

Page 4: © Boardworks Ltd 20131 of 8 Programming tools Teacher’s notes in the Notes Page Flash activity (these are not editable) Icons: Algorithms and programming

© Boardworks Ltd 20134 of 8

Types of translator: interpreters

Two common applications for translating code are interpreters and compilers.

An interpreter converts high level language into machine code one line at a time. This converted line is then fed directly to the CPU.

However, the interpreter will stop if there is an error in the program. The error must be corrected before the interpreter will continue to run.

Page 5: © Boardworks Ltd 20131 of 8 Programming tools Teacher’s notes in the Notes Page Flash activity (these are not editable) Icons: Algorithms and programming

© Boardworks Ltd 20135 of 8

Types of translator: compilers

A compiler converts all lines of code before sending them to the CPU, and this can take time.

A compiled program will only run on certain CPUs since it is compiled using a particular CPU’s register machine code format.

If there is an error in the program line then the compiler will stop. After the error has been corrected, the compiler has to re-compile all the lines of code.

Page 6: © Boardworks Ltd 20131 of 8 Programming tools Teacher’s notes in the Notes Page Flash activity (these are not editable) Icons: Algorithms and programming

© Boardworks Ltd 20136 of 8

Interpreters and compilers

Page 7: © Boardworks Ltd 20131 of 8 Programming tools Teacher’s notes in the Notes Page Flash activity (these are not editable) Icons: Algorithms and programming

© Boardworks Ltd 20137 of 8

Programmers’ tools

Page 8: © Boardworks Ltd 20131 of 8 Programming tools Teacher’s notes in the Notes Page Flash activity (these are not editable) Icons: Algorithms and programming

© Boardworks Ltd 20138 of 8

Programmers’ tools