Language Processing Activities
Last Updated :
20 Apr, 2023
Language processing activity bridges the ideas of software designers with actual execution on the computer system. The designer expresses the idea related to the application domain of the software. To implement these ideas, the description of the ideas has to be interpreted as related to the execution domain of the computer system. The fundamental of language processing activities are grouped into two categories:
- Program generation activity.
- Program execution activity.
Program Generation Activity
This activity generates a program from its specification program. Program generation activity bridges the specification gap.
- A program generator is a software system program that accepts the specifications of the program to be generated and generates the program in the target program in a target programming language.
- This activity generates a program from its specification.
- The program generator introduces a new domain between the application and the programming language domain called the program generator domain.
- It accepts the source program and generates a program in the target language.
Program Execution Activity
This activity aims at bridging the execution gap by organizing the execution of a program written in a programming language on a computer system. A program may be executed through translation and interpretation.
Program Execution Activity
- This activity involves the actual execution of the program generated by the program generator. The program execution activity bridges the implementation gap.
- The program execution activity involves loading the program into the memory of the computer system, interpreting the program instructions, and executing them on the computer system.
- During program execution, the computer system reads the program instructions from memory and executes them one by one, performing the necessary computations and producing the desired results.
- The program execution activity involves various components of the computer system, including the processor, memory, input/output devices, and other system resources required to execute the program.
In summary, the language processing activities are grouped into program generation activity and program execution activity. The program generation activity generates a program from its specification, while the program execution activity involves the actual execution of the program on the computer system. These two activities are critical for software development and are essential for bridging the gap between the application domain and the programming language domain, as well as the gap between the specification and implementation of software systems.
There are two domains of program execution activity:
1. Program Translation
The program translation model bridges the execution gap by translating a program written in a programming language called the source program into an equivalent program in the machine language called the target program.
- A program must be translated before it can be executed.
- A translated program may save in a file. So that, we can execute saved files or programs repeatedly.
2. Program Interpretation
The interpreter reads the source program and stores it in its memory. Throughout interpretation takes a statement, finds its meaning, and performs actions that implement this. This includes computational and input-output actions. The CPU uses a program counter (PC) to note the address of the next instruction to be executed.
This Instruction is subjected to the instruction execution cycle consisting of the following steps:
- Fetch the instruction.
- Decode the instruction to determine the operation to be performed, and also its operands.
- Execute the Instruction
At the end of the cycle, the instruction address in PC is updated and the cycle is repeated for the next instruction.
Program Interpretation can proceed in an analogous manner. Thus, the PC can indicate which statement of the source program is to be interpreted next.
Similar Reads
Short Note on Activity and Swimlane Diagram An Activity in the activity diagram is also known as Activity state. It is used to represent the invocation of operation, a step in an entire business process. Swimlane is a way in which the performed activities can be grouped by the same actor on an Activity diagram. To use swimlanes in an activity
3 min read
Top 10 ChatGPT Prompts for Mastering a New Language It can be a very exciting and difficult adventure to learn and master a new language. Learning a new language opens up a new world of possibilities, with which users can increase their abilities, connect with individuals, and learn words they didnât know existed and it can also help professionally.
7 min read
Full-Length TOEFL 2024 Practice Test: Free Download TOEFL 2024 Practice Paper-34 Finding high-quality resources online might be challenging, particularly if youâre looking for a free sample exam. But donât be concerned! Our goal is to assist you. A free online TOEFL practice test was made specifically for you by GeekforGeeks TOEFL experts. To help you with your test-day preparat
15 min read
IELTS Exam Practice Mock Full-Length Test: Download Free Test-25 The professionals at GeeksforGeeks have provided IELTS Exam Practice Mock Full-Length Test questions for all four sections of IELTS- reading, writing, speaking, and listening. To help you efficiently prepare for the IELTS exam, our team of knowledgeable educators and test-prep experts has carefully
15+ min read
Activity Theory in HCI Human-Computer Interaction (HCI) is a complex discipline that deals with the creation, testing, and implementation of seamless and responsive computing systems for the purpose of human usage. One of the radiant theories, that has gained the immense application of research and design in HCI, is calle
5 min read
Free IELTS Speaking Sample Mock Practice Test-1: Download IELTS Speaking Tests The experts at GeeksforGeeks have created free IELTS exam mock test questions for speaking and listening sections to help you prepare efficiently for the IELTS exam online. Designed by experienced educators and IELTS test-prep experts, these free IELTS practice questions simulate the actual test for
5 min read