What function does an interpreter perform with the instructions in a high-level programming language

Homepage

Accessibility links

  • Skip to content
  • Accessibility Help

BBC Account

Notifications

  • Home
  • News
  • Sport
  • Weather
  • iPlayer
  • Sounds
  • Bitesize
  • CBeebies
  • CBBC
  • Food
  • Home
  • News
  • Sport
  • Reel
  • Worklife
  • Travel
  • Future
  • Culture
  • TV
  • Weather
  • Sounds

More menu

Search Bitesize Search Bitesize

  • Home
  • News
  • Sport
  • Weather
  • iPlayer
  • Sounds
  • Bitesize
  • CBeebies
  • CBBC
  • Food
  • Home
  • News
  • Sport
  • Reel
  • Worklife
  • Travel
  • Future
  • Culture
  • TV
  • Weather
  • Sounds
Close menu

BITESIZE

  • Home
  • Learn
  • Support
  • Careers
    • My Bitesize

GCSE

Programming software and the IDE

There are many programming languages. To execute, they have to be compiled or interpreted. An IDE [integrated development environment] is used to write code, test for errors and translate a program.

Part of

Computer Science

Programming

  • Revise

  • quiz

    Test

  1. previous

  2. 1
  3. 2
  4. 3
  5. 4
  6. 5
  7. 6
  8. Page2of 6
  9. next

Assemblers, compilers and interpreters

Translators - usually included within programming software - convert high-level code into machine code. Translators are assemblers, interpreters or compilers.

Assembler

'An assembler translates assembly language into machine code. Assembly language is a low-level language written in mnemonics that closely reflects the operations of the CPU.

Interpreter

An interpreter translates code into machine code, instruction by instruction - the CPU executes each instruction before the interpreter moves on to translate the next instruction. Interpreted code will show an error as soon as it hits a problem, so it is easier to debug than compiled code.

An interpreter does not create an independent final set of source code - source code is created each time it runs. Interpreted code is slower to execute than compiled code.

Interpreted languages include JavaScript, PHP, Python and Ruby. Interpreted languages are also called scripting languages. These are ideal for using within dynamic web applications. They are used for client-side and server-side coding, as they are small programs that are executed within the browser.

Compiler

A compiler translates the whole program into machine code before the program is run. It can be difficult to test individual lines of compiled code compared to interpreted languages as all bugs are reported after the program has been compiled.

The machine code is saved and stored separately to the high-level code. Compilation is slow but machine code can be executed quickly.

Java and C++ are compiled programming languages. Java is a high-level programming language which is compiled to produce bytecode which is then interpreted by a virtual machine [VM]. Bytecode is code which is compiled and can then be interpreted.

Jackson Gabbard explains how Facebook uses compilers

download

TranscriptDownloadTranscript

  1. previous

  2. 1
  3. 2
  4. 3
  5. 4
  6. 5
  7. 6
  8. Page2of 6
  9. next

GCSE Subjects

  1. Art and Design
  2. Biology [Single Science]
  3. Business
  4. Chemistry [Single Science]
  5. Combined Science
  6. Computer Science
  7. Design and Technology
  8. Digital Technology [CCEA]
  9. Drama
  10. English Language
  11. English Literature
  12. French
  13. Geography
  14. German
  15. History
  16. Home Economics: Food and Nutrition [CCEA]
  17. Hospitality [CCEA]
  18. ICT
  19. Irish – Learners [CCEA]
  20. Journalism [CCEA]
  21. Learning for Life and Work [CCEA]
  22. Mandarin
  23. Maths
  24. Maths Numeracy [WJEC]
  25. Media Studies
  26. Modern Foreign Languages
  27. Moving Image Arts [CCEA]
  28. Music
  29. Physical Education
  30. Physics [Single Science]
  31. PSHE and Citizenship
  32. Religious Studies
  33. Science
  34. Sociology
  35. Spanish
  36. Welsh Second Language [WJEC]

How does computer understand high

Computers only understand machine code - they do not understand high-level language code. Any high-level programming language code has to be converted to executable code. Executable code is also known as machine code which is a combination of binary code 0s and 1s.

Which type of programming language translates the entire code before running any of the instructions steps?

A high-level language is a programming language that uses English and mathematical symbols in its instructions. To execute a program in a high-level language, it can be compiled or interpreted. A compiler translates the entire program written in a high-level language to machine language prior to execution.

How is a source code being translated from high

A compiler is a computer program that translates a program written in a high-level language to the machine language of a computer. The compiler is used to translate source code into machine code or compiled code.

Which of the following is a program that translates English language instructions into computer language?

The correct answer is Interpreter. A computer program that translates one program's instructions at a time into machine language is called an Interpreter. An interpreter translates one instruction at a time and executes that instruction immediately.

Bài Viết Liên Quan

Chủ Đề