PESIT SOUTHCAMPUS 10CS52: SYSTEM SOFTWARE QUESTION BANK
|
|
- Elvin George
- 6 years ago
- Views:
Transcription
1 CS52: SYSTEM SOFTWARE QUESTION BANK Chapter1: MACHINE ARCHITECTURE OBJECTIVE: Main Objective is to Know about the system software and architecture of Various Machines Like SIC, SIC/XE and Programming examples of SIC, SIC/XE 1. What is System software? Compare system software with application software and give couple of examples. 4* 2. Explain the instruction formats and addressing modes of SIC/XE machine architecture. * 3. Suppose the ALPHA is an array of 0 words. Write a sequence of instructions for SIC/XE to set all 0 elements of the array to ZERO. Use immediate addressing and 6* register to register addressing to make the process as efficient as possible. 4. Bring out the difference between application software and system software Explain the instruction format of SIC/XE Machine Architecture by clearly mention indicating the setting of different flag bits Explain the addressing modes of SIC/XE Machine Write a subroutine in SIC/XE to read a 0-byte record from a device F5 into BUFFER. Use immediate and register-to-register instructions. 6. Write an assembly program on SIC/XE machine to implement block move form a memory address a1 to another address a2, without overlap Explain the registers and Instruction formats of SIC/XE.. Write a program for SIC/XE to add 2 arrays each having 0 elements & each element 1 word in length and store the result back in memory. 5* 11. With reference to SIC standard version explain instruction format Explain the architecture of SIC. 13. Explain the architecture of SIC/XE 14. Explain the addressing modes of SIC with an example each. 15. Explain the addressing modes of SIC/XE with an example each. 16. List out registers used in SIC machine architecture along with their use Write a sequence of instructions for SIC/XE to set ALPHA equal to GAMMA * BEETA -9.(Use register operation.) 5 1. Write a program in both SIC and SIC/XE to copy a character string System Software to another character string. 19. Clearly differentiate between system software and application software Clearly differentiate between SIC an SIC/XE architecture Write a SIC program to transfer 0bytes of data from one array to another array Write a SIC/XE program to transfer 0bytes of data from one array to another array Explain the role of various registers in SIC/XE architecture 6
2 Chapter2: ASSEMBLERS:(unit 2 and unit 3) OBJECTIVE: Deals with assembler, One Pass and Multi Pass assemblers 1. Write and explain the algorithm of PASS-1 of 2 pass assembler. 2. Discuss the need for a two pass assembler and clearly Explain it s functions. What are the fundamental functions that any assembler must perform? With a 3. suitable example, explain any six assembler directives. * 4. Explain the data structures used in assembler algorithms 6* What is program relocation? Explain the problems associated with it and their 5. solutions. 4* Write algorithm of pass 2 of 2 pass assembler. Also, explain briefly the data 6. structures used and for what purpose they are used in pass-2 14* 7. Explain the need of relocation of a program. Explain how it is implemented. 6* What do you understand by assembler directives? Explain BYTE and RESW with. example 4 Generate the complete object program for the following assembly level program. SUM START 0 FIRST CLEAR X LDA #0 +LDB #TOTAL BASE TOTAL LOOP ADD TABLE,X 9. TIX COUNT JLT LOOP STA TOTAL COUNT RESW 1 TABLE RESW 2000 TOTAL RESW 1 END FIRST ASSUMEBELOW OPCODES(all in hexadecimal) CLEAR-B4 LDA-00 LDB-6 ADD-1 TIX-2C JLT-3 STA-OC. Explain the machine dependent features of an assembler. 11. Explain the 2-pass algorithm of assembler. 12. Explain any three possible data structure for assembler implementation. 13. Explain the data structures used in the design of an assembler Explain the concept of relocation. 15. Explain the machine independent features of an assembler.
3 16. Explain how a source program is converted into object program. Give format of the object program and discuss contents of the header and text record. 17. Explain control sections. 1. Write a short note on ORG directive Explain multi-pass assembler. 20. Write a note on MASM assembler. How is Relocation is done using the following: 21. 1) Modification Records, 2) Bit Marks. 22. List the assembler direction of SIC/XE and Explain Generate the target address for the following machine instructions Assume Content of x register (x)=0000 Content of B Register (b)=0020 Content of PC Register(pc)=2000 1) ) ) 03213C 4) ) 03a16 6) 03c172 7) 03a13c ) Explain with the help of an example each the following instructions a. ADDF b. COMPF c. COMPR d. DIVF e. DIVR Explain with the help of an example each the following instructions a. FIX b. FLOAT c. HIO d. NORM e. SIO Explain with the help of an example each the following instructions a. STCH b. LDT c. LDL d. JEQ e. ROM Explain with the help of an example each the following instructions a. STF b. RSUM c. SHIFTL d. TD e. WD Explain with the help of an example each the following instructions a. TIO b. COMP c. LPS d. SVC e. PIX Compare a 2-pass assembler with a 1-pass assembler. How forward references are handle in 1-pass assembler? Write a program to sort the given set of elements in ascending order if the content of memory location Loc is ODD else sort them in descending order. Generate the machine code for the following: +JSUB RDREC,STL RETARD, LDB # LENGTH. Assume the opcode for JSUB=4H,STL=14h and LDB=6H the location counter value for RDREC =36, RETARD=0030 LENGTH=0033. How do you specify the SIC/XE system assembly program if the displacement is greater than 12-bits? Explain the need for BASE and NOBASE directive with example. What is the difference between literal and immediate operand? How the assembler does handle literal operand? How does relocation problem solved by relative addressing mode? Explain with an example 5
4 36. Write a note on MASM assembler Define the following with an example: i) Operation code table ii)symbol table 6 3. Describe how the assembler handles literal operands. 6 Give the format of the following records necessary to obtain object code: 39. i) Define record ii) Refer record iii)modification record(revised) * What are program blocks? With a suitable example, explain how program blocks 40. are handled by an assembler. 6* Explain how multipass assembler handles the following forward reference HALfSZ EQU MAXLEN/2 2 MAXLEN EQU BUFEND-BUFFER 3 PREVBT EQU BUFFER-1 4 BUFFER RESB BUFFEND EQU * Assume that, when assembler goes to line 4,location counter contains 34(hex) * 42. Explain load and go assembler,with an example. 43. Explain any one Assembler What are literals? Explain Discuss the different methods of achieving program relocation 46. What is program relocation? Why it is to be supported by an assembler List and explain the functionalities of an assembler 5 4. Explain the data structures needed in the construction of an assembler 49. What is symbol table? explain 50. Briefly explain the working principle of a multi pass assembler 51. What is the need of BASE assembler directive? When it is to be used? Explain the Pass-1 algorithm of a 2 pass assembler 53. Explain the Pass-2 algorithm of a 2 pass assembler 54. What are assembler directives? Explain any 5 assembler directives with example 6 Chapter 3: LOADERS AND LINKERS Objective: This topic discusses how a program will be loaded in to the memory and how it is linked to other programs. 1. What is loader? What are the basic functions the loader has to perform? 4* What is relocation? Explain the methods for specifying relocation as a part of object 2. program. * 3. Explain the working of linkage editor and linking loader. * 4. With a diagram,explain how object program can be processed using linkage editor. *
5 5. Discuss dynamic linking with suitable examples. Write explanatory notes on 6. Boot Strap Loader 5 7. Write a program in SIC/XE machine for a simple bootstrap loader. Discuss the capabilities of inter active system and explain the debugging With the help of an example, show relocation and linking operations are performed. 12*. Enlist any four different loader option commands. 4* 11. Define the following: i) Linking Loader ii) Dynamic linking 4* 12. Give and explain the algorithm or source program for a simple Bootstrap loader. * 13. Distinguish between linking loader and linkage editors. 4* 14. Explain the dynamic linking with a suitable diagrams * 15. Explain machine dependent loader features. 16. Explain a relocating loader. 17. Explain the concept program linking. 1. Write and Explain the algorithm used for the design of linking loader. 19. Explain the data structures used for linking loader. 20. Explain the machine independent loader features. 21. Explain linkage editors. 22. Write a note on dynamic linking. 23. Explain the functions of linking loader and linkage editor, highlighting the differences 24. Explain the structure of a typical editor with the help of a suitable diagram Explain MS-DOS linker. Explain dynamic linking with suitable diagrams. 26. Discuss Loader and Linker option on any two systems Distinguish between linking loader and linkage editors. 4 With the help of an example, show how relocation and linking operations are 29. performed Enlist any four different loader option commands Define the following: i)linking loader ii)dynamic linking Discuss the key functionality of a loader Discuss the key functionality of a linker Explain linking loaders Explain linkage editors Clearly differentiate between linking loaders and linkage editors 37. Explain dynamic linking 6 3. Explain any one type of linker Explain the working principle of linking loader Write a bootstrap loader Chapter 4: EDITORS AND DEBUGGING SYSTEMS OBJECTIVE: About Text Editors that is overview of Editing Process and Debugging functions. 1. Define a text editor. With a diagram Explain a typical Editor Structure 2. Explain the overview of editing process. 3. Explain user interface.
6 4. Explain editor structures. 5. Define debugging systems. Explain the different tasks to be accomplished by a text editor for an interactive user 6. computer dialogue. * 7. Write an algorithm for linking loader. 12 Describe debugging functions and capabilities. 9. Explain the functions and capabilities of interactive debugging system 6 Discuss the data structures required in the design of linking loaders Write short notes on the features of line-editor, Text Editor, graphical Editor and word Processor. List the important four tasks to be accomplished by a text editor for an interactive user 11 computer dialogue Discuss three basic types of computing environments for editors Define tracing and trace back in debugging functions Write a note on the concept of user interface criteria in a text editor 6 15 Explain the different computing environments for editors 6 Explain the different tasks to be accomplished by a text editor for an interactive user 16 computer dialogue. 17 What is an interactive debugging system? Explain 6 1 With a neat diagram explain the workflow of an editor Chapter 5: MACROPROCESSORS OBJECTIVE: The Objective of this chapter is to know about Macro processor functions and Definitions. dealing with the implementation of MASM macro Language. Also dealt with Macro Processor Features, like Macro Expansion, Keyword Macro Parameters. What is Macro? Briefly discuss various data structures required for a design of MACRO 1. PROCESSOR * 2. Explain the concept of macro definition and macro Explain the data structures involved in macro processor algorithms. 6* 4. Explain the advantages and disadvantages of general purpose macro processors * 5. Write explanatory notes on general purpose macro processors 6 6. What are the data structures used in the macro processor design? 7. Explain concatenation of macro parameters with suitable examples 7. List the different tables used for a macro processor. Explain their functions 6* 9. Explain machine independent macro processor features.. Explain conditional macros with an example. 11. Explain keyword macro parameters. 12. Explain macro processor design. 13. Write a note on recursive macro. 14. Explain general-purpose macro processors. 15. Explain macro processing in compilers. Explain MASM macro processor. 16. List and explain the different design option for a macro processor Briefly discuss various data structure required for a design of a macro processor Illustrate the Conditional assembly of MASM Macro Processor. 19. Explain the functioning of General purpose Macro Processor. 6
7 20. Write one pass macro Processor algorithm And explain. Explain with suitable examples Conditional Macro Expansion And Recursive macro Expansion. Using the following definition, expand the following macro calls, called in sequence. i). LABEL RDBUFF F2, BUFFER, LENGTH,(04,12) ii). RDBUFF OE, BUFF,RLENG, 204 RDBUFF MACRO &INDEV,&BUFADR,&RECLTH,&EOR,&MAXLTH &EORCT SET %NITEMS(&EOR) CLEAR X CLEAR A IF (&MAXLTH AQ ) 21. +LDT #4096 ELSE +LDT #&MAXLTH ENDIF $LOOP TD =X &INDEV JEQ $LOOP RD =X &INDEV &CTR SET 1 WHILE (&CTR LE &EORCT) COMP =X 0000 &EOR[&CTR] JEQ $EXIT &CTR SET &CTR+1 ENDW STCH &BUFADR, X TIXR T JLT $LOOP $EXIT STX &RECLTH MEND 22. Write an algorithm for an one pass macro processor. 23. Explain ANSI C macro language What are functions of macro Processor? Explain the various data structures used in the implementation of a 1-pass macro processor. 25. WRITE A SHORT NOTE ON KEYWORD MACRO PARAMETERS Explain the role of a macro processor Explain anyone macro processor 5 2. Discuss the different data structures needed to construct a macro processor What is a general-purpose macro processor? Explain 30. What are conditional macros? Explain Write a note on macro expansion 32. Explain the advantages and disadvantages of macros 6 Chapter 6: LEX and YACC
8 OBJECTIVE: The objective here is to know about the Language specifiers like Lex and Parser generator like YACC. & how to use LEX & YACC in Programming. 1. Explain the following regular expression with examples: i)[ ] ii) { } iii) / iv) ( ) 2. Discuss the characters that used in the meta language as part of standard ASCII character set used in UNIX operating system. 3. Write a LEX program to identify the decimal number What is regular expression?briefly explain the all characters that form regular expression. 5. What is YACC? Explain the different sections used in writing the YACC specifications. 6. Write a YACC program to function as a calculator which performs addition, subtraction, multiplication, division and unary operations. 7. What is shift/reduce parsing? Explain the parsing pf the input fred= and represent it using parse tree.. Explain the ambiguity while passing 2+3 x 4. Explain the solution for it. 9. Explain various sections of a LEX specification using a basic word count program reading from a file. 7. Explain various sections of a LEX specification using a basic word count program by 7 reading from a file. 11. Define YACC tools. What are the two types of conflicts in YACC? Give examples. 12. Write YACC program to validate a simple arithmetic expression involving operators +,-,*,/ 13. Define and explain the use of YYwrap() With an example explain LEX Describe the general structure of LEX program with a suitable a example. 16. Write YACC Program to Validate a simple if statement & count them Write a LEX program to remove uppercase letters & write spaces in a file. 1. Explain the implementation of lexical analyzer. 19. Write a short note on parser-lexer communication Write a lex program to count the number of vowels and consonants in a given string Expression in UNIX with proper examples Give the LEX and YACC specifications to recognize parenthesized Arithmetic expression. 23. Explain the use of yyleng Write a note about handwritten lexer Write a lex & yacc program to recognize an b2n 26. Write a lex program to recognize all your classmates names Discuss how to reduce the shift-reduce conflict 5 2. Explain the different characters used in the regular expressions
9 ASSEMBLY LANGUAGE PROGRAMS 1. Write SIC assembly level language program to clear a 20-byte string to all blanks. 2. Write SIC/XE assembly level language program to clear a 20-byte string to all blanks. Use immediate addressing and register-to-register instruction to make the program efficient. 3. Write a assembly language program for instructions for SIC to initialize an array of 0 elements to Write an assembly language program for instructions for SIC/XE to initialize an array of 0 elements to Write an assembly language program for SIC machine that will read a 0 byte record and write it into a output whose address is C0H use subroutine. 6. Write a assembly language program for SIC/XE machine that will read 0-byte record and write it into a output whose address is C0H use Subroutine. 7. Write an assembly language program to move a block of data bytes of length 0H from the source block starting at location 200H in DS to the destination block starting at location 3000H in ES. Assume ES and DS are already initialized.. Write an assembly language program to find the largest element in an array Recursively. 9. Write an assembly language program to compute the factorial of -bit Number at a byte location using recursion. Write an assembly language program to compute GCD of four16 bits. Unsigned numbers and store the result in the word location GCD. Write an assembly language program to sort in ascending order using bubble sort 11. algorithm, a given set of bytes sized unsigned numbers in memory. The sorted elements should replace the original unsorted elements in memory. Write an assembly language program to sort in ascending order using insertion sort 12. algorithm, a given set of 16-bit unsigned numbers in memory. The sorted elements should replace the original elements in memory. Write an assembly language program to search for a given -bit value using linear 13. search in an array of -bit numbers. Write an assembly language program to compute the LCM 16-bit unsigned integers 14. and store the result in word location LCM. 15. Write an assembly language program to compute ncr given n and r using recursion. Write an assembly language program to compute using co-processor, hypotenuse of 16. a right-angled triangle, given the 2 sides as real numbers. Write an assembly language program to compute the square root of a real integer 17. by Newton Raphson's method, using co-processor. Mini Projects 1. Develop a simple text editor 2. Create a assembler for the hypothetical SIC machine 3. Develop a text editor, which supports a spell checking option. If any mistakes are found then it has to list a set of appropriate words. 4. Create a assembler for the hypothetical SIC/XE machine
10 5. Create a macro processor for C language 6. Create a macro processor for SIC/XE language 7. Develop a text editor, which supports a grammar checking option. If any mistakes are found then it has to specify the corrected statement. Develop a Intelligent text editor which predicts the words depending on first few key hits.
PESIT Bangalore South Campus Department of MCA Course Information for. System Programming (13MCA24)
PESIT Bangalore South Campus Department of MCA Course Information for System Programming (13MCA24) 1.GENERAL INFORMATION Academic Year: 2015 Semester(s): 2 nd Title Code Duration (hrs) Lectures 48 Hrs
More informationGechstudentszone.wordpress.com
UNIT - 1 MACHINE ARCHITECTURE 11 Introduction: The Software is set of instructions or programs written to carry out certain task on digital computers It is classified into system software and application
More informationChapter 2 Assemblers Machine-Dependent Assembler Features
Chapter 2 Assemblers -- 2.2 Machine-Dependent Assembler Features Outline Instruction format and addressing mode Program relocation Instruction format and addressing mode PC-relative or Base-relative addressing
More informationINTERNAL TEST (SCHEME AND SOLUTION)
PES Institute of Technology, Bangalore South Campus (Formerly PES School of Engineering) (Hosur Road, 1KM before Electronic City, Bangalore-560 100) Dept of MCA INTERNAL TEST (SCHEME AND SOLUTION) 1 Subject
More informationUNIT II ASSEMBLERS www.noyesengine.com www.technoscriptz.com 1 1. BASIC ASSEMBLER FUNCTIONS 2. A SIMPLE SIC ASSEMBLER 3. ASSEMBLER ALGORITHM AND DATA STRUCTURES 4. MACHINE DEPENDENT ASSEMBLER FEATURES
More informationChapter 1: Background
Chapter 1: Background Hsung-Pin Chang Department of Computer Science National Chung Hsing University Outline 1.1 Introduction 1.2 System Software and Machine Architecture 1.3 The Simplified Instructional
More informationChapter 2. Assembler Design
Chapter 2 Assembler Design Assembler is system software which is used to convert an assembly language program to its equivalent object code. The input to the assembler is a source code written in assembly
More informationCS2422 Assembly Language & System Programming
CS2422 Assembly Language & System Programming December 7, 2006 Today s Topic Assembler: Machine Dependent Features SIC/XE Program Relocation Modification Records in an Object File. Study Guide Sections
More informationCS2422 Assembly Language & System Programming
CS2422 Assembly Language & System Programming November 30, 2006 Today s Topic Assembler: Basic Functions Section 2.1 of Beck s System Software book. Reading Assignment: pages 43-52. Role of Assembler Source
More informationUNIT II ASSEMBLERS. Figure Assembler
2.1 Basic assembler functions UNIT II ASSEMBLERS Assembler Assembler which converts assembly language programs into object files. Object files contain a combination of machine instructions, data, and information
More informationGechstudentszone.wordpress.com
CHAPTER -2 2.1 Basic Assembler Functions: The basic assembler functions are: ASSEMBLERS-1 Translating mnemonic language code to its equivalent object code. Assigning machine addresses to symbolic labels.
More informationUNIT I - INTRODUCTION
UNIT I - INTRODUCTION 1. Define system software. It consists of variety of programs that supports the operation of the computer. This software makes it possible for the user to focus on the other problems
More informationDHANALAKSHMI SRINIVASAN INSTITUTE OF RESEARCH AND TECHNOLOGY SIRUVACHUR, PERAMBALUR DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
DHANALAKSHMI SRINIVASAN INSTITUTE OF RESEARCH AND TECHNOLOGY SIRUVACHUR, PERAMBALUR 621113. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS2304- SYSTEM SOFTWARE PART-B QUESTIONS 1. EXPLAIN THE ARCHITECTURE
More informationChapter 1. Introduction
Chapter 1 Introduction This Chapter gives you System Software & Machine Architecture The Simplified Instructional Computer SIC and SIC/XE Traditional (CISC) Machines - Complex Instruction Set Computers
More informationAssemblers. System Software by Leland L. Beck. Chapter 2
Assemblers System Software by Leland L. Beck Chapter 2 1 Role of Assembler Source Program Assembler Object Code Linker Executable Code Loader 2 Chapter 2 -- Outline Basic Assembler Functions Machine-dependent
More informationIntroduction SIC, RISC & CISC 0. Introduction to Systems Programming This course aims at: Understanding what is going on behind the scenes The design and implementation of system software, such as Assemblers
More informationChapter 1 Background. Professor Gwan-Hwan Hwang Dept. Computer Science and Information Engineering National Taiwan Normal University
Chapter 1 Background Professor Gwan-Hwan Hwang Dept. Computer Science and Information Engineering National Taiwan Normal University 9/17/2009 1 Outlines 1.1 Introduction 1.2 System Software and Machine
More informationUnit 2 -- Outline. Basic Assembler Functions Machine-dependent Assembler Features Machine-independent Assembler Features Assembler Design Options
Unit 2 -- Outline Basic Assembler Functions Machine-dependent Assembler Features Machine-independent Assembler Features Assembler Design Options Introduction to Assemblers Fundamental functions translating
More information2.1. Basic Assembler Functions:
2.1. Basic Assembler Functions: The basic assembler functions are: Translating mnemonic language code to its equivalent object code. Assigning machine addresses to symbolic labels. SOURCE PROGRAM ASSEMBLER
More information1.Program to find factorial of a given number
1.Program to find factorial of a given number DATA SEGMENT X DW 06H FACT DW? DATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA START: MOV AX,DATA MOV DS,AX MOV AX,01H ;Set the value of AX as 01H. MOV CX,X
More informationCS2304-SYSTEM SOFTWARE 2 MARK QUESTION & ANSWERS. UNIT I INTRODUCTION
CS2304-SYSTEM SOFTWARE 2 MARK QUESTION & ANSWERS. UNIT I INTRODUCTION 1. Define System Software. System software consists of a variety of programs that supports the operations of a computer. Eg. Compiler,
More informationUNIT 1: MACHINE ARCHITECTURE
VTU QUESTION PAPER SOLUTION UNIT 1: MACHINE ARCHITECTURE 1. a) Give the target address generated for the following machine instruction: (i) 032600h (ii) 03C300h (iii) 0310C303h if (B)=006000, (PC)=003000,
More informationTRB-COMPUTER INSTRUCTOR COMPUTER SCIENCE UNIT IV. SYSTEM SOFTWARE 10% DISCOUNT FOR ALL PGTRB MATERIALS WITH QUESTION BANK.
N COACHING CENTRE-TRICHY- TRB- COMPUTER INSTRUCTOR-COMPUTER SCIENCE STUDY MATERIAL-CONTACT: 822006 2017 N TRB-COMPUTER INSTRUCTOR COMPUTER SCIENCE UNIT IV SYSTEM SOFTWARE 10% DISCOUNT FOR ALL PGTRB MATERIALS
More informationUNIT III - LOADERS AND LINKERS
3.1 Introduction to Loaders UNIT III - LOADERS AND LINKERS A loader is the part of an operating system that is responsible for loading programs into memory and prepares them for execution. Loading a program
More informationUNIT-IV: MACRO PROCESSOR
UNIT-IV: MACRO PROCESSOR A Macro represents a commonly used group of statements in the source programming language. A macro instruction (macro) is a notational convenience for the programmer o It allows
More informationAS-2883 B.Sc.(Hon s)(fifth Semester) Examination,2013 Computer Science (PCSC-503) (System Software) [Time Allowed: Three Hours] [Maximum Marks : 30]
AS-2883 B.Sc.(Hon s)(fifth Semester) Examination,2013 Computer Science (PCSC-503) (System Software) [Time Allowed: Three Hours] [Maximum Marks : 30] Note: Question Number 1 is compulsory. Marks : 10X1
More informationChapter 3 Loaders and Linkers -- Machine-Dependent Loader Feature
Chapter 3 Loaders and Linkers -- Machine-Dependent Loader Feature Motivation Shortcoming of an absolute loader Programmer needs to specify the actual address at which it will be loaded into memory. It
More informationCSI 402 Lecture 5 (Assemblers Continued) 5 1 / 18
CSI 402 Lecture 5 (Assemblers Continued) 5 1 / 18 Program Relocation Example 1: Consider the SIC instruction LDA THREE Assume the following: The START directive specifies the value 100 (decimal) The LC
More informationMachine dependent Assembler Features
Machine dependent Assembler Features Assembler Features Machine Dependent Assembler Features Instruction formats and addressing modes (SIC/XE) Program relocation Machine Independent Assembler Features
More information4.2 Machine-Independent Macro Processor Features
4.2 Machine-Independent Macro Processor Features Extensions to the basic macro processor functions Concatenation of Macro Parameters Generation of Unique Labels Conditional Macro Expansion Keyword Macro
More informationPrepared By : Ms. Sanchari Saha ( Asst. Professor) Department : Computer Science & Engineering
Subject Name: System Software Subject Code: 10CS52 Prepared By : Ms. Sanchari Saha ( Asst. Professor) Department : Computer Science & Engineering Date : 20-10-2014 UNIT-4 LOADERS & LINKERS Engineered for
More informationCS1203-SYSTEM SOFTWARE UNIT I-INTRODUCTION
CS1203-SYSTEM SOFTWARE UNIT I-INTRODUCTION 1. Define system software. It consists of variety of programs that supports the operation of the computer. This software makes it possible for the user to focus
More informationSystem Programming. System Software: An Introduction to Systems Programming. Leland L. Beck 3rd Edition Addison-Wesley, 1997
System Programming System Software: An Introduction to Systems Programming Leland L. Beck 3rd Edition Addison-Wesley, 1997 1 http://web.thu.edu.tw/ctyang/ 2 http://hpc.csie.thu.edu.tw/ 3 Score List Participation:
More informationChapter 2 Assemblers Assembler Design Options
Chapter 2 Assemblers -- 2.4 Assembler Design Options Outline One-pass assemblers Multi-pass assemblers Two-pass assembler with overlay structure Load-and-Go Assembler Load-and-go assembler generates their
More informationChapter 3 Loaders and Linkers
Chapter 3 Loaders and Linkers Outline 3.1 Basic Loader Functions 3.2 Machine-Dependent Loader Features 3.3 Machine-Independent Loader Features 3.4 Loader Design Options 3.5 Implementation Examples Introduction
More informationUNIT 1: MACHINE ARCHITECTURE
VTU QUESTION PAPER SOLUTION UNIT 1: MACHINE ARCHITECTURE 1. Give the target address generated for the following machine instruction: (i) 032600h (ii) 03C300h (iii) 0310C303h if (B)=006000, (PC)=003000,
More informationCOMPILERS BASIC COMPILER FUNCTIONS
COMPILERS BASIC COMPILER FUNCTIONS A compiler accepts a program written in a high level language as input and produces its machine language equivalent as output. For the purpose of compiler construction,
More informationChapter 3 Loaders and Linkers
Chapter 3 Loaders and Linkers Outline 3.1 Basic Loader Functions 3.2 Machine-Dependent Loader Features 3.3 Machine-Independent Loader Features 3.4 Loader Design Options 3.5 Implementation Examples Introduction
More informationIntroduction. Chapter 4 Macro Processors -- Basic Macro Processor Functions. Macro expansion. Basic macro processor functions
Introduction Chapter 4 Macro Processors -- Basic Macro Processor Functions Amacroinstruction(macro)isanotational convenience for the programmer Itallowstheprogrammertowriteshorthandversionofaprogram (module
More informationChapter 3 Loaders and Linkers
Chapter 3 Loaders and Linkers Three fundamental processes: Loading brings the object program into memory for execution. Relocation modifies the object program so that it can be loaded at an address different
More informationAn Assembler Written in SAS Ed Heaton, Westat, Rockville, MD
Paper 607 An Assembler Written in SAS Ed Heaton, Westat, Rockville, MD ABSTRACT Is SAS a programming language, i.e. can it handle problems typically in the domain of a real language like C? To prove the
More informationQUESTION BANK CHAPTER 1 : OVERVIEW OF SYSTEM SOFTWARE. CHAPTER 2: Overview of Language Processors. CHAPTER 3: Assemblers
QUESTION BANK CHAPTER 1 : OVERVIEW OF SYSTEM SOFTWARE 1) Explain Analysis-synthesis model/fron end backend model of compiler 2) Explain various phases of compiler and symbol table. Consider the statement
More informationUNIT III LOADERS AND LINKERS
UNIT III LOADERS AND LINKERS INTRODUCTION Loader is a system program that performs the loading function. Many loaders also support relocation and linking. Some systems have a linker (linkage editor) to
More informationGUJARAT TECHNOLOGICAL UNIVERSITY
Type of course: System Programming GUJARAT TECHNOLOGICAL UNIVERSITY SYSTEM PROGRAMMING SUBJECT CODE: 21508 B.E. 5 th SEMESTER Prerequisite: Data Structures and Operating Systems Rationale: NA Teaching
More information國立嘉義大學資訊工程學系系統程式期中考考卷
國立嘉義大學資訊工程學系系統程式期中考考卷 學號 : 姓名 : 1. Please write the content in the lines. (25%) PROGB START EXTDEF B1, B2 EXTREF A1 LDA B1 +LDA A1 STA B1 +STA A1 B1 WORD 7 BUF RESB 1 B2 RESW 1 MAX EQU 1 END H^PROGA^^
More informationVARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad
Introduction to MS-DOS Debugger DEBUG In this laboratory, we will use DEBUG program and learn how to: 1. Examine and modify the contents of the 8086 s internal registers, and dedicated parts of the memory
More informationCompiler, Assembler, and Linker
Compiler, Assembler, and Linker Minsoo Ryu Department of Computer Science and Engineering Hanyang University msryu@hanyang.ac.kr What is a Compilation? Preprocessor Compiler Assembler Linker Loader Contents
More informationSYSTEMS PROGRAMMING. Srimanta Pal. Associate Professor Indian Statistical Institute Kolkata OXFORD UNIVERSITY PRESS
SYSTEMS PROGRAMMING Srimanta Pal Associate Professor Indian Statistical Institute Kolkata OXFORD UNIVERSITY PRESS Contents Preface v 1. Scope of Systems Programming 1 1.1 Introduction 7 1.2 Computers and
More informationELEG3924 Microprocessor
Department of Electrical Engineering University of Arkansas ELEG3924 Microprocessor Ch.2 Assembly Language Programming Dr. Jing Yang jingyang@uark.edu 1 OUTLINE Inside 8051 Introduction to assembly programming
More informationELEG3923 Microprocessor Ch.2 Assembly Language Programming
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.2 Assembly Language Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Inside 8051 Introduction to assembly programming
More informationEECE416 :Microcomputer Fundamentals and Design. X86 Assembly Programming Part 1. Dr. Charles Kim
EECE416 :Microcomputer Fundamentals and Design X86 Assembly Programming Part 1 Dr. Charles Kim Department of Electrical and Computer Engineering Howard University www.mwftr.com 1 Multiple Address Access
More informationPRINCIPLES OF COMPILER DESIGN UNIT I INTRODUCTION TO COMPILERS
Objective PRINCIPLES OF COMPILER DESIGN UNIT I INTRODUCTION TO COMPILERS Explain what is meant by compiler. Explain how the compiler works. Describe various analysis of the source program. Describe the
More informationEDIABAS BEST/2 LANGUAGE DESCRIPTION. VERSION 6b. Electronic Diagnostic Basic System EDIABAS - BEST/2 LANGUAGE DESCRIPTION
EDIABAS Electronic Diagnostic Basic System BEST/2 LANGUAGE DESCRIPTION VERSION 6b Copyright BMW AG, created by Softing AG BEST2SPC.DOC CONTENTS CONTENTS...2 1. INTRODUCTION TO BEST/2...5 2. TEXT CONVENTIONS...6
More informationAbout the Authors... iii Introduction... xvii. Chapter 1: System Software... 1
Table of Contents About the Authors... iii Introduction... xvii Chapter 1: System Software... 1 1.1 Concept of System Software... 2 Types of Software Programs... 2 Software Programs and the Computing Machine...
More informationLoaders. Systems Programming. Outline. Basic Loader Functions
Loaders Systems Programming Chapter 3 Linkers and Loaders A loader is a system program that performs the loading function. many also support relocation & linking others have a separate linker and loader
More informationSystems Programming Assemblers Part 4 Control Sections
Systems Programming Assemblers Part 4 Control Sections Prof. Dr. Hani Mahdi Department of Computer Science Al-Isra University, Amman, Jordan 1 1 Control Sections A Control Section is a part of the program
More information4. An interpreter is a program that
1. In an aboslute loading scheme, which loader function is accomplished by programmer? A. Allocation B. LInking C. Reallocation D. both (A) and (B) 2. A compiler program written in a high level language
More information8.7 TM: A SIMPLE TARGET MACHINE
8.7 TM: A SIMPLE TARGET MACHINE In the section following this one we will present a code generator for the TINY language. In order to make this a meaningful task, we generate target code directly for a
More informationMAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER-15 EXAMINATION Model Answer Paper
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in themodel answer scheme. 2) The model answer and the answer written by candidate may
More information1. The output of lexical analyser is a) A set of RE b) Syntax Tree c) Set of Tokens d) String Character
1. The output of lexical analyser is a) A set of RE b) Syntax Tree c) Set of Tokens d) String Character 2. The symbol table implementation is based on the property of locality of reference is a) Linear
More informationCHAPTER SEVEN PROGRAMMING THE BASIC COMPUTER
CHAPTER SEVEN 71 Introduction PROGRAMMING THE BASIC COMPUTER A computer system as it was mentioned before in chapter 1, it is subdivided into two functional parts: 1 Hardware, which consists of all physical
More informationComputer Organization and Assembly Language. Lab Session 01
Objective: Lab Session 01 Introduction to Assembly Language Tools and Familiarization with Emu8086 environment To be able to understand Data Representation and perform conversions from one system to another
More informationChapter 3: Loaders and Linkers
Department of Electr rical Eng ineering, Chapter 3: Loaders and Linkers 王振傑 (Chen-Chieh Wang) ccwang@mail.ee.ncku.edu.tw ncku edu 3.1 Basic Loader Functions 3.1.1 Design of an Absolute Loader 3.1.2 A Simple
More informationLOADERS AND LINKERS 1. BASIC LOADER FUNCTIONS 2. DESIGN OF AN ABSOLUTE LOADER 3. A SIMPLE BOOTSTRAP LOADER 4. MACHINE DEPENDENT LOADER FEATURES
UIT III LOADERS AD LIKERS 1. BASIC LOADER FUCTIOS 2. DESIG OF A ABSOLUTE LOADER 3. A SIMPLE BOOTSTRAP LOADER 4. MACHIE DEPEDET LOADER FEATURES 5. RELOCATIO 6. PROGRAM LIKIG 7. ALGORITHM AD DATA STRUCTURES
More informationLecture 2: C Programming Basic
ECE342 Introduction to Embedded Systems Lecture 2: C Programming Basic Ying Tang Electrical and Computer Engineering Rowan University 1 Facts about C C was developed in 1972 in order to write the UNIX
More informationB. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013
Information Technology, UTU 203 030000 Fundamentals of Programming Problems to be solved in laboratory Note: Journal should contain followings for all problems given below:. Problem Statement 2. Algorithm
More informationThe Assembly Language Level. Chapter 7
The Assembly Language Level Chapter 7 Definitions Translator Converts user program to another language Source language Language of original program Target language Language into which source code is converted
More informationFifth Semester B.E. Degree Examination, December Software Engineering
10IS51 Software Engineering Time: 3 hrs. Note: Answer FIVEfull questions, selecting at least TWO questions from each part. Max. Marks: 100 1 a. What are the attributes of a good software? Explain. Also
More information(i) Describe in detail about the classification of computers with their features and limitations(10)
UNIT I - INTRODUCTION Generation and Classification of Computers- Basic Organization of a Computer Number System Binary Decimal Conversion Problems. Need for logical analysis and thinking Algorithm Pseudo
More informationThis contains the following three processes, and they are,
Chapter 3 Loaders and Linkers This Chapter gives you Basic Loader Functions Machine-Dependent Loader Features Machine-Independent Loader Features Loader Design Options Implementation Examples 30 Introduction
More informationMachine Language Instructions Introduction. Instructions Words of a language understood by machine. Instruction set Vocabulary of the machine
Machine Language Instructions Introduction Instructions Words of a language understood by machine Instruction set Vocabulary of the machine Current goal: to relate a high level language to instruction
More informationOverview of C. Basic Data Types Constants Variables Identifiers Keywords Basic I/O
Overview of C Basic Data Types Constants Variables Identifiers Keywords Basic I/O NOTE: There are six classes of tokens: identifiers, keywords, constants, string literals, operators, and other separators.
More informationORG ; TWO. Assembly Language Programming
Dec 2 Hex 2 Bin 00000010 ORG ; TWO Assembly Language Programming OBJECTIVES this chapter enables the student to: Explain the difference between Assembly language instructions and pseudo-instructions. Identify
More informationPART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers.
Set No. 1 IV B.Tech I Semester Supplementary Examinations, March - 2017 COMPUTER ARCHITECTURE & ORGANIZATION (Common to Electronics & Communication Engineering and Electronics & Time: 3 hours Max. Marks:
More informationSRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013)
SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013) UNIT I THE 8086 MICROPROCESSOR PART A (2 MARKS) 1. What are the functional
More informationN.B. These pastpapers may rely on the knowledge gained from the previous chapters.
N.B. These pastpapers may rely on the knowledge gained from the previous chapters. 1 SEC 95-PAPER 1-Q5 (a) A computer uses 8-bit two s complement numbers. In the space below fill in the largest positive
More informationC Programming Language. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff
C Programming Language 1 C C is better to use than assembly for embedded systems programming. You can program at a higher level of logic than in assembly, so programs are shorter and easier to understand.
More informationCompiler Design. Computer Science & Information Technology (CS) Rank under AIR 100
GATE- 2016-17 Postal Correspondence 1 Compiler Design Computer Science & Information Technology (CS) 20 Rank under AIR 100 Postal Correspondence Examination Oriented Theory, Practice Set Key concepts,
More informationINTRODUCTION 1 AND REVIEW
INTRODUTION 1 AND REVIEW hapter SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN. Programming: Advanced Objectives You will learn: Program structure. Program statements. Datatypes. Pointers. Arrays. Structures.
More informationCompiler Design Aug 1996
Aug 1996 Part A 1 a) What are the different phases of a compiler? Explain briefly with the help of a neat diagram. b) For the following Pascal keywords write the state diagram and also write program segments
More informationUNIT I. Pune Vidyarthi Griha s COLLEGE OF ENGINEERING, NASHIK-4. 1
Pune Vidyarthi Griha s COLLEGE OF ENGINEERING, NASHIK-4. 1 UNIT I Introduction: Components of System Software: Text editors, Loaders, Assemblers, Macro processors, Compilers, Debuggers. Machine Structure,
More informationVALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR
VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR 603 203 FIRST SEMESTER B.E / B.Tech., (Common to all Branches) QUESTION BANK - GE 6151 COMPUTER PROGRAMMING UNIT I - INTRODUCTION Generation and
More informationQUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS
FATIMA MICHAEL COLLEGE OF ENGINEERING & TECHNOLOGY Senkottai Village, Madurai Sivagangai Main Road, Madurai -625 020 QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS UNIT 1 - THE 8085 AND 8086
More informationCS311 Lecture: The Architecture of a Simple Computer
CS311 Lecture: The Architecture of a Simple Computer Objectives: July 30, 2003 1. To introduce the MARIE architecture developed in Null ch. 4 2. To introduce writing programs in assembly language Materials:
More informationProgramming in C++ 5. Integral data types
Programming in C++ 5. Integral data types! Introduction! Type int! Integer multiplication & division! Increment & decrement operators! Associativity & precedence of operators! Some common operators! Long
More informationProgramming for Problem Solving 105A L T P Credit Major Minor Total Time
ES- Programming for Problem Solving 105A L T P Credit Major Minor Total Time Test Test 3 - - 3 75 25 100 3h Purpose To familiarize the students with the basics of Computer System and C Programming Course
More informationCHAPTER ASSEMBLY LANGUAGE PROGRAMMING
CHAPTER 2 8051 ASSEMBLY LANGUAGE PROGRAMMING Registers Register are used to store information temporarily: A byte of data to be processed An address pointing to the data to be fetched The vast majority
More informationThe Instruction Set. Chapter 5
The Instruction Set Architecture Level(ISA) Chapter 5 1 ISA Level The ISA level l is the interface between the compilers and the hardware. (ISA level code is what a compiler outputs) 2 Memory Models An
More informationAssembly Language programming (1)
EEE3410 Microcontroller Applications LABORATORY Experiment 1 Assembly Language programming (1) Name Class Date Class No. Marks Familiarisation and use of 8051 Simulation software Objectives To learn how
More informationA simple syntax-directed
Syntax-directed is a grammaroriented compiling technique Programming languages: Syntax: what its programs look like? Semantic: what its programs mean? 1 A simple syntax-directed Lexical Syntax Character
More informationINSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor
INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor Subject Name: Microprocessor and Microcontroller Year: 3 rd Year Subject Code: CS502 Semester: 5 th Module Day Assignment 1 Microprocessor
More informationCSC 467 Lecture 3: Regular Expressions
CSC 467 Lecture 3: Regular Expressions Recall How we build a lexer by hand o Use fgetc/mmap to read input o Use a big switch to match patterns Homework exercise static TokenKind identifier( TokenKind token
More informationSECTION 3 ASSEMBLY LANGUAGE PROGRAMMING
SECTION 3 ASSEMBLY LANGUAGE PROGRAMMING Assembly Language Programming Structure Page No. 3.0 Introduction 33 3.1 Objectives 33 3.2 Assemblers 33 3.2.1 Turbo Assembler (TASM) 3.2.2 MASM 3.2.3 Emu 8086 3.2.4
More informationUnit wise Question Bank UNIT-II
Academic year: 2017-18 Program: B Tech Course Title: Microprocessor & Microcontrollers Unit wise Question Bank Year/Semester: III/I Section: A, B & C Branch: ECE UNIT-I 1. Draw the functional pin diagram
More information2) Save the Macro definition:- The processor must store the macro instruction definitions which it will need for expanding macro calls.
Subject Code: 17517 Model Answer Page: 1/ 21 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model
More information8086 ALP TOOLS (CH 2) CHAPTER 2
1 CHAPTER 2 In this chapter, we shall discuss the Assembly Language Program development tools, PC memory structure and Assembler directives. Books to be Referred: 1. Microprocessors and Interfacing 2nd
More informationMicroprocessor and Assembly Language Week-5. System Programming, BCS 6th, IBMS (2017)
Microprocessor and Assembly Language Week-5 System Programming, BCS 6th, IBMS (2017) High Speed Memory Registers CPU store data temporarily in these location CPU process, store and transfer data from one
More informationUNIT III LOADERS AND LINKERS PART A
PART A UNIT III LOADERS AND LINKERS 1. Define Absolute Loader and Bootstrap Loader. The loader, which is used only for loading but not for relocation or linking is known as absolute loader. e.g. Bootstrap
More informationQuestion Bank Part-A UNIT I- THE 8086 MICROPROCESSOR 1. What is microprocessor? A microprocessor is a multipurpose, programmable, clock-driven, register-based electronic device that reads binary information
More information2010 Summer Answers [OS I]
CS2503 A-Z Accumulator o Register where CPU stores intermediate arithmetic results. o Speeds up process by not having to store these results in main memory. Addition o Carried out by the ALU. o ADD AX,
More information