by admin | Jan 2, 2021 | COBOL
COBOL Programming Syntax This section contains numerous example programs for better understanding of COBOL. SAMPLE PROGRAM -1 This is a demo program to learn and understand major difference between elementary/individual item and group item. IDENTIFICATION DIVISION....
by admin | Jan 2, 2021 | Full Form
Full Form UPSC Most of us have heard the term UPSC many times from our teachers, colleagues, relatives, family and friends. We know it is responsible for conducting all the government jobs examinations but do you know what the full form of UPSC is. The full form of...
by admin | Jan 2, 2021 | Python
Python Constructor: A Constructor is a special kind of method automatically called while creating an object. A Constructor is defined in the class, and we can use this method to initialize the basic attributes of the class. Usually, the constructor has the same name...
by admin | Jan 2, 2021 | COA
CPU Registers Within the CPU, we have small- small storage units called registers. If we are executing a certain program within the CPU, there’s a need to store that program content, we need a storage device, or small memories that reside inside the CPU called...
by admin | Dec 31, 2020 | Compiler Design
Machine-Independent Optimizations The main aim of machine-independent optimization is to improve the generated intermediate code so that compiler can get better target code. Eliminating unwanted code from the object code or replacing one set of code with another set...
by admin | Dec 31, 2020 | Compiler Design
Intermediate-Code Generator The process of translating a source language into machine code for a given target machine is done by intermediate-code. It lies between the high-level language and the machine language. See the below image that illustrates the position of...
by admin | Dec 31, 2020 | Compiler Design
Data Flow Analysis All the optimization techniques we have learned earlier depend on data flow analysis. DFA is a technique used to know about how the data is flowing in any control-flow graph. Example: Forglobal common sub-expression elimination, we need to find the...
by admin | Dec 31, 2020 | Compiler Design
Basic Blocks and Flow Graphs In this section, we are going to learn how to work with basic block and flow graphs in compiler design. Basic Block The basic block is a set of statements. The basic blocks do not have any in and out branches except entry and exit. It...
by admin | Dec 31, 2020 | Compiler Design
Case Statement The “case” or “switch” statement is available in various languages. The following is the syntax for the case statement: switch (E) { case V1: S1 case V2: S2 .... case Vn-1: Sn-1 ...
by admin | Dec 31, 2020 | Compiler Design
Optimization of Basic Blocks We can apply the optimization process on a basic block. While optimization, there is no need to change the set of expressions computed by the block. The basic block optimization can be done in two ways: Structure-Preserving...