Programming Languages and Translators (copy)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/3

encourage image

There's no tags or description

Looks like no tags are added yet.

4 Terms

1
New cards

What categories are programming languages divided into? Explain each one (2)

  • low-level languages, e.g. assembly language, machine code (binary) - is translated using an assembler. One statement translates into one binary instruction.

  • high-level languages, e.g. python, C# - independent of hardware. Translated using a compiler / interpreter. One statement translates to numerous binary instructions.


2
New cards

advantages of high-level languages (3)

  • easy to learn and faster to code in

  • easy to read and understand

  • high-level languages are developed to make coding very quick and easy


3
New cards

advantages of low-level languages (3)

  • gives programmer complete control over components in embedded systems - can be used to control and manipulate specific hardware.

  • Very efficient code can be written for particular processors

  • occupies less memory and executes faster


4
New cards

what are the different types of translators (3) and what do they do?

  • assemblers - convert assembly language into machine code (binary)

  • compilers - translate programs written in high-level languages into machine code. The translation is complex, as one instruction translates to many machine code instructions.

  • interpreters - also translate high-level languages into machine code. interpreters execute programs directly. Translates each instruction to a sequence of calls to several subroutines compiled into machine code