Search Header Logo
High vs Low level Code and Translators

High vs Low level Code and Translators

Assessment

Presentation

Computers

9th - 10th Grade

Practice Problem

Easy

Created by

Ben Dobson

Used 3+ times

FREE Resource

91 Slides • 12 Questions

1

​High vs Low level Languages and Translators

2

media

3

media

4

​High level vs Low Level Languages and Translators

5

media

6

media

7

media

8

media

9

media

10

media

11

media

12

​What is machine code?

13

  • A low level language....

  • That uses binary instruction that CPU can decode and execute

  • Different instructions have different binary values

​What is machine code?

14

Open Ended

What is machine code?

15

  • A low level language....

  • That uses binary instruction that CPU can decode and execute

  • Different instructions have different binary values

​What is machine code?

16

​What is assembly language?

17

​What is assembly language?

  • A low level language....

  • That has simple instructions such as LOAD, each of which corresponds to a single machine code instruction.

  • It must be translated into machine code (object code) to be understood by CPU.

  • But this translation process is faster than translating high level language into machine code

18

​What is assembly language?

  • A low level language....

  • That has simple instructions such as LOAD, each of which corresponds to a single machine code instruction.

  • It must be translated into machine code (object code) to be understood by CPU.

  • But this translation process is faster than translating high level language into machine code

19

Open Ended

What is assembly language?

20

​What is assembly language?

  • A low level language....

  • That has simple instructions such as LOAD, each of which corresponds to a single machine code instruction.

  • It must be translated into machine code (object code) to be understood by CPU.

  • But this translation process is faster than translating high level language into machine code

21

media

22

Open Ended

What are the advantages of low level languages?

23

media

24

media

25

Open Ended

What is a high level language?

26

media

27

media

28

Open Ended

What are the advantages of high level languages?

29

​Advantages of high level languages

  • A high-level language is easier to learn

    Programs can be written faster in a high-level language

    It is easier to understand and debug a high-level language

30

media

31

​Whiteboard.
Low level vs High Level Languages.
Explain each and explain some advantages/disadvantages of each

32

media

33

media

34

media

35

media

36

media

37

media

38

media

39

media

40

media

41

Open Ended

Explain what a compiler does.

42

​A compiler translates the whole of a high level language program into machine code at once.
(Unless there is a syntax error....in which case no machine is made)

43

Open Ended

In a compiled language what happens if compilation is attempted if high level code breaks the grammar rules of programming language?

44

​An error (syntax) message will be given to the user but no machine code will be produced

45

media

46

Open Ended

What is an interpreter?

47

​An interpreter is program that translates high level source code, line by line, into machine code, which is then executed (by the CPU via FDE; the CPU does not need the interpreter to understand the machine code made after it is made)

48

Open Ended

1) When high level code is compiled does the user need the compiler?

2) When high level code is interpreted does the user need the interpreter installed to run the code?

49

1) When high level code is compiled does the user need the compiler? NO

2) When high level code is interpreted does the user need the interpreter installed to run the code? YES

50

Open Ended

1) When high level code is compiled what is given to the user (by the developer) ?

2) When high level code is interpreted what is given the user(by the developer)?

51

1) When high level code is compiled what is given to the user (by the developer) ?
Just the machine (object) code

2) When high level code is interpreted what is given the user(by the developer)? The source code (and possibly the interpreter although the developer may assume the user has this already)

52

media

53

media

54

media

55

media

56

media

57

Open Ended

Describe some compiler advantages

58

media

59

media

60

Open Ended

Describe some interpreter advantages

61

media

62

​Whiteboard up Compiler vs Interpreter.
(What they are/do and pros and cons)

63

media

64

media

65

media

66

media

67

media

68

media

69

media

70

media

71

media

72

media

73

media

74

media

75

media

76

media

77

media

78

media

79

media

80

media

81

media

82

media

83

media

84

media

85

media

86

media

87

media

88

media

89

media

90

media

91

media

92

media

93

media

94

media

95

media

96

media

97

media

98

media

99

media

100

media

101

media

102

media

103

media

​High vs Low level Languages and Translators

Show answer

Auto Play

Slide 1 / 103

SLIDE