Translators

  • Created by: Tomiwaq
  • Created on: 14-05-19 19:05
View mindmap
  • Translators
    • High-level and low-level languages
      • Most programming languages are high-level
      • The source code is easy for humans to write but computers need to translate it
      • Low-level languages are hard for humans to read but are easier for a computer to run
      • High-level
        • One instruction of high-level code represents many instructions in machine code
        • The same code will work for many different machines and processors
        • Must be translated into machine code before the computer can run it
      • Low-level
        • Usually written for one type of machine
        • Code is very difficult to read, understand and modify
        • Commands in machine code can be executed directly without the need for a translator
    • Translators
      • Translators convert programming languages into machine code
      • The three types are: assemblers, compilers and interpreters
      • Assemblers
        • Used to turn assembly language into machine code
      • Compiler
        • Translates all of the source code at the same time and creates one executable file
        • Only needed once to create the executable file
        • Returns a list of errors for the entire program once compiling is complete
      • Interpreter
        • Translates and runs the source cpde one imstruction at a time
        • Needed every time you want to run the program
        • It will return the first error it finds then stop. Useful for debugging

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »See all Design, testing and IDEs resources »