3.2. The Software Development Process - Implementation Pt2
Upcoming SlideShare
Loading in...5
×
 

3.2. The Software Development Process - Implementation Pt2

on

  • 1,741 views

The Software Development Process - Implementation

The Software Development Process - Implementation
High and low level languages, translators
Higher / Int 2 Notes

Statistics

Views

Total Views
1,741
Views on SlideShare
1,314
Embed Views
427

Actions

Likes
0
Downloads
20
Comments
0

3 Embeds 427

http://forrestercomputing.wikispaces.com 421
https://forrestercomputing.wikispaces.com 5
http://www.slideshare.net 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    3.2. The Software Development Process - Implementation Pt2 3.2. The Software Development Process - Implementation Pt2 Presentation Transcript

    • Implementation – High and Low Level Languages
    • High and Low Level Languages
      • Programming languages are generally similar to the English language. They use words like If, Else, Repeat, While etc. These languages are known as high level languages .
    • High and Low Level Languages
      • The computer does not understand high level languages. It understands binary codes which are referred to in programming as machine codes e.g. 10010010 01101010. These languages are known as low level languages.
    • Translators
      • So, humans understand high level languages
      • and
      • Computers understand low level languages.
      • To get our high level languages into a form that the computer understands, we need a translator.
      • A translator converts high level language commands into low level language commands.
    • Interpreters and Compilers
      • In order to resolve this problem, there are two ways to convert the high level language written by humans into a low level language understood by computers.
      • These are interpreters and compilers .
    • Interpreters
      • As the program is running , the interpreter takes one line of code at a time and translate it into a low level code.
      IF age > 18 THEN displayfield.text = “Left school” END IF
    • Interpreters
      • As the program is running , the interpreter takes one line of code at a time and translate it into a low level code.
      10011001 00010110 11000100 00010011 displayfield.text = “Left school” END IF
    • Interpreters
      • As the program is running , the interpreter takes one line of code at a time and translate it into a low level code.
      10011001 00010110 11000100 00010011 10010010 11110001 00000001 10011011 00110101 01111110
    • Compilers
      • A compiler works by converting the program source code and converting it into object code before the program is run.
      IF age > 18 THEN displayfield.text = “Left school” END IF
    • Compilers
      • A compiler works by converting the program source code and converting it into object code before the program is run.
      10011001 00010110 11000100 00010011 10010010 11110001 00000001 10011011 00110101 01111110
    • Compilers vs Interpreters
        • Interpreters are slower than compilers when the program is running because they have to interpret each line
        • The interpreter needs to be in memory each time the program is run, whereas compilers do not
        • Interpreters can make debugging a program easier because they can track errors line by line
        • Compilers have to have programs recompiled each time the code is changed, even if the change is minor