Section 4 class of program language Flashcards
High level language
Have a syntax and structure similar to English so it can be easily understood by most humans
Name some High level language
Python, C#, Visual Basic
What does it mean when these High-level languages are what we call hardware independent?
Meaning they can work on any system. Programmer can therefore focus on own task without haveing to concern themselves with architecture of the computer.
High level code must be co…. or interp… before it can run
compiled or interpreted
it goes from:
source code(high level language) —-> compiler——-> Machine code(object code)
interpret in cs meaning
In computer science, an interpreter is a computer program that directly executes instructions written in a programming or scripting language, without requiring them previously to have been compiled into a machine language program.
compiled in cs meaning
Compiling a C Program. Compiling is the transformation from Source Code (human readable) into machine code (computer executable). A compiler is a program.
Assembly Language
low level language used to control specific hardware components.
commands execute quickly
efficient and occupies less memory than that produce by translating the equivalent high-level instructions
software is written in this language as machine code is produced by assembler fast
Processors
These guys execute the machine code, binary instruction which the computer can respond to directly perform a task. Each type= specific machine code instruction set so machine code for one type wont work on another
The 3 Translators:
Compiler
Translates high-level code
Translates high level into machine code
compiled program executes faster as it is in machine code already
produces executable file so it original does not need to be compiled again
no need for the compiler to be present when the object code is run
The 3 Translators: Interpreter
Translates and executed a line of high-level language code at a time.
longer to execute as it needs to translate each line
Will have to be translated every time original code is run
interpreter must be installed to run the program
The 3 Translators:Assembler
converts assembly language into machine code
simple conversion
every assembly language instruction is translated into a single machine code