Problem Statement : Write a program in C/Cpp to identify keywords, identifiers and special symbols in a given program. Methodology: 1. Create a c program. 2. Open the *.c file/program in the read mode 3. Identify keywords, identifiers and special symbols and store them in appropriate data structure
Write aprogram in C or Cpp to identify keywords, identifiers and special symbols in a given program. Write a program for Parsing a Command Line Implementation of the Pass-I of the assembler to generate SYMTAB from assembly language program. Implementation of the Pass-I of the assembler to generate LITTAB and POOLTAB from assembly language program. Implementation of the Pass-II of the assembler produces a target program which is in the machine language of the target computer. To study & implementation of the macro expansion. To Study & understand the working of the linker. To Study & understand different schemes of loader.
Problem Statement: To Study & understand different schemes of loader. Theory: Input given to the loader is binary program which is an output from the linker. The user’s source program decks are converted to the object program decks (machine language) by assemblers and compilers. The loader is a program which accepts the object program decks, prepares these programs for execution, and initiates the execution.
Problem Statement: To Study & understand the working of the linker. Theory: Execution of a program written in a programming language is achieved in the following four steps: Translation: A program is translated into a target program. Linking: The code of target program is combined with codes of those programs and library routines that it calls.
Problem Statement: To study & implementation of the macro expansion. Theory: Definition of Macro: “A macro is a unit of specification for program generation through expansion.” A macro definition is enclosed between a macro header statement and a macro end statement of the macro. A macro definition consists of:
Problem Statement: Implementation of the Pass-II of the assembler produces a target program which is in the machine language of the target computer. Theory: Important data structures used by Pass-II are SYMTAB LITTAB & POOLTAB
Problem Statement: Implementation of the Pass-I of the assembler to generate LITTAB and POOLTAB from assembly language program. Theory: Tasks performed by the Pass-I are Separate the symbol table, mnemonic table, and operand fields. Build the symbol table.
Exp no 2. Parsing a Command Line: The command line parameters are the parameters that are appearing on the shell prompt. The command line interface is the interface which allows the user to interact with the computer by typing the commands. In C we can pass these parameters to the main function in the form of character array. For example: $ cp abc.txt pqr.txt Here argv[0]=cp argv[1]=abc.txt
Subject: SYSTEM PROGRAMMING QUESTION BANK FOR UT-1 (Chapter 1 & 2) Multiple Choice Questions 1. Intermediate code for “ORIGIN” is a) (IS, 03) b) (DL, 02) c) (AD, 03S) d) (AD, 04) 2. Execution gap is the gap between____________ . a) AD & ED b) PLD & ED c) ...