Explain about two-pass assembler, Computer Engineering

Assignment Help:

Q. Explain about Two-pass assembler?

Assemblers usually make two or more passes through a source program in order to resolve forward references in a program. A forward reference is expressed as a type of instruction in code segment which is referencing the label of an instruction though the assembler hasn't yet encountered the definition of that instruction.

Pass 1:  Assembler reads the whole source program and creates a symbol table of labels and names used in the program that is name of data fields and programs labels and their relative location (offset) within the segment.

Pass 1 concludes the amount of code to be produced for every instruction. 

Pass 2:Assembler uses the symbol table which it constructed in Pass 1. Now it knows the relative position and length of every data field and instruction and it can complete object code for every instruction.  It generates .OBJ (Object file), .LST (list file) and cross reference (.CRF) files.


Related Discussions:- Explain about two-pass assembler

Explain naming convention globals, Explanation The values of global vari...

Explanation The values of global variables can be used and changed all over the project within all scripts and libraries. However it is highly recommended to remain the number o

No class can derive, Make a console application. Add class 'Account' having...

Make a console application. Add class 'Account' having variables as num (integer) name (String), bal (double), ac_code (byte). Describe four different constructors to initialize th

How numbering plan is achieved in modern telephony, How numbering plan is a...

How numbering plan is achieved in modern telephony? Give the structure with example. The objective of numbering plan is to uniquely identify every subscriber connected to a tel

Write the truth table for a clocked J-K flip-flop, Write the truth table fo...

Write the truth table for a clocked J-K flip-flop that is triggered by the positive-going edge of the clock signal. Ans. Logic diagram of JK flip flop Truth T

What are the variations in a fast adder, a. Design a fast adder. What are t...

a. Design a fast adder. What are the variations in a fast adder? b. Define how the virtual address is changed into real address in a paged virtual memory system. Give an example

Explain meaning of each field format of icmp header, Give the format of ICM...

Give the format of ICMP header and explain meaning of each field. The format of ICMP header is given below: Internetwork Control Message Protocol (ICMP) ICMP H

Write the html code to webpage to insert scrollable lists, Write the HTML c...

Write the HTML code to accomplish the web page to insert scrollable lists that will always display four entries of the list. The HTML code to accomplish the web page is given b

What is a word line, What is a word line? In a memory cell, all the cel...

What is a word line? In a memory cell, all the cells of a row are linked to a common line called as word line

Define a variant of top-down parsing without backtracking, A parser which i...

A parser which is a variant of top-down parsing without backtracking is? Ans. Recursive Descend is a variant of top-down parsing without backtracking.

Operating system, explain network operating system and design issues?

explain network operating system and design issues?

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd