Translators and Facilities of Languages (2.5)
No description yet. This curated deck is ready for daily study.
Card preview (16)
What is high level languages
• easier to write and program as no expertise is needed (closest to human language and understanding). More translation needed to convert into machine code
What are some examples of high level language
• Python, Java, C++
What are the advantages of high level languages
• easier to program and modify • programs can be written much faster • code can be debugged easily • code is portable across multiple platforms
What are the disadvantages of high level languages
• requires more memory than low level languages - translation takes longer and less control over hardware
What is a low level language
• programs written related to specific computer hardware and architecture, so less translation needed to convert into machine code
What is an example of low level languages
• Assembly language, machine code
What are the advantages of low level languages
• assembly language uses English like statements - translated programs require less memory
What are the disadvantages of low level languages
• machine code is difficult to understand and takes longer time to write programs • code is machine dependant (not portable)
What is a translator
• A translator converts programming language and instructions into machine code, to be executed by the computer (using binary). There are TWO main types of translators (for HLLs): 1 - Compiler 2 - Interpreter
What is a compiler
• translates all the code into machine code in one go, producing an executable file which can be run. • Much faster to run than an interpreter, • but not as effective to debug for errors
What is an interpreter
• translates the code one line at a time, into machine code during program execution. • Much more effective to debug for individual errors, • but interpreter code is far less slow than compiled code.
What is an IDE
• An IDE is a software program which provides programmers with many different tools and features to help aid program and software development
Code editors (IDE)
• (allowing program code to be written and edited, often highlighting keywords and syntax with colours
Debugging (IDE)
• (find/diagnose and fix errors and also show information about the errors e.g. syntax or runtime errors as well as where they occur). Some IDEs also suggest solutions
Run Time Environment (IDE)
• (enables the program to be run straight after you have written it, to check for run time errors). Also allows testing of the program
Translators (IDE)
• (built in translators to convert the high level code into machine code, allowing the code to be executed/run).