Implementation – High and Low Level Languages
High and Low Level Languages <ul><li>Programming languages are generally similar to the English language. They use words l...
High and Low Level Languages <ul><li>The computer does not understand high level languages.  It understands binary codes w...
Translators <ul><li>So, humans understand high level languages </li></ul><ul><li>and </li></ul><ul><li>Computers understan...
Interpreters and Compilers <ul><li>In order to resolve this problem, there are two ways to convert the high level language...
Interpreters <ul><li>As the program is running , the interpreter takes one line of code at a time and translate it into a ...
Interpreters <ul><li>As the program is running , the interpreter takes one line of code at a time and translate it into a ...
Interpreters <ul><li>As the program is running , the interpreter takes one line of code at a time and translate it into a ...
Compilers <ul><li>A compiler works by converting the program  source code  and converting it into  object code  before the...
Compilers <ul><li>A compiler works by converting the program  source code  and converting it into  object code  before the...
Compilers vs Interpreters <ul><ul><li>Interpreters are slower than compilers when the program is running because they have...
Upcoming SlideShare
Loading in …5
×

3.2. The Software Development Process - Implementation Pt2

1,609 views
1,518 views

Published on

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

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,609
On SlideShare
0
From Embeds
0
Number of Embeds
434
Actions
Shares
0
Downloads
35
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

3.2. The Software Development Process - Implementation Pt2

  1. 1. Implementation – High and Low Level Languages
  2. 2. High and Low Level Languages <ul><li>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 . </li></ul>
  3. 3. High and Low Level Languages <ul><li>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. </li></ul>
  4. 4. Translators <ul><li>So, humans understand high level languages </li></ul><ul><li>and </li></ul><ul><li>Computers understand low level languages. </li></ul><ul><li>To get our high level languages into a form that the computer understands, we need a translator. </li></ul><ul><li>A translator converts high level language commands into low level language commands. </li></ul>
  5. 5. Interpreters and Compilers <ul><li>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. </li></ul><ul><li>These are interpreters and compilers . </li></ul>
  6. 6. Interpreters <ul><li>As the program is running , the interpreter takes one line of code at a time and translate it into a low level code. </li></ul>IF age > 18 THEN displayfield.text = “Left school” END IF
  7. 7. Interpreters <ul><li>As the program is running , the interpreter takes one line of code at a time and translate it into a low level code. </li></ul>10011001 00010110 11000100 00010011 displayfield.text = “Left school” END IF
  8. 8. Interpreters <ul><li>As the program is running , the interpreter takes one line of code at a time and translate it into a low level code. </li></ul>10011001 00010110 11000100 00010011 10010010 11110001 00000001 10011011 00110101 01111110
  9. 9. Compilers <ul><li>A compiler works by converting the program source code and converting it into object code before the program is run. </li></ul>IF age > 18 THEN displayfield.text = “Left school” END IF
  10. 10. Compilers <ul><li>A compiler works by converting the program source code and converting it into object code before the program is run. </li></ul>10011001 00010110 11000100 00010011 10010010 11110001 00000001 10011011 00110101 01111110
  11. 11. Compilers vs Interpreters <ul><ul><li>Interpreters are slower than compilers when the program is running because they have to interpret each line </li></ul></ul><ul><ul><li>The interpreter needs to be in memory each time the program is run, whereas compilers do not </li></ul></ul><ul><ul><li>Interpreters can make debugging a program easier because they can track errors line by line </li></ul></ul><ul><ul><li>Compilers have to have programs recompiled each time the code is changed, even if the change is minor </li></ul></ul>

×