Posts

Showing posts with the label SP lab manual

Experiment no 1

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

LIST OF EXPERIMENTS FOR SYSTEM PROGRAMMING

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.

Experiment no 8

Image
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.

Experiment no 7

Image
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.

Experiment no 6

Image
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:

Implementation of the Pass-II of the assembler

Image
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

Experiment No. 4

Image
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.

Experiment no 3

Problem Statement:   Implementation of the Pass-I of the assembler to generate SYMTAB 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. Perform LC Processing.

Experiment No 2

 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

Sp lab manual

Here is the link to download sp lab manual practicle1: Click here to download practical 1 practicle2: Click here to download practical 2