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

What is race around condition, What is race around condition? Ans: ...

What is race around condition? Ans: Race Around Condition:- Jn Kn Q(n+1) output   0 1 0 1   0 0

What is the session, What is the session.  Session is a collection of v...

What is the session.  Session is a collection of various groups of method. Every session is assigned to a single control terminal. This terminal is either a pseudo-device. or a

Search-based tools in parallel computers, The search-based tools initially ...

The search-based tools initially recognize problem and afterwards suitably give advice on how to correct it.  AT Expert from Cray Research is one of the tools being employed for

What is the difference among scrollbar and scrollpane, A Scrollbar is a Co...

A Scrollbar is a Component, but not a Container while Scrollpane is a Container and handles its own events and do its own scrolling.

How many tables can an append structure be assigned, To how many tables can...

To how many tables can an append structure be assigned. One table can be assigned to append structure.

Data mining, what is data mining and what is its uses in a industry?

what is data mining and what is its uses in a industry?

Difference between a substructure and an append structure, What is the diff...

What is the difference between a Substructure and an Append Structure? In case of a substructure, the reference originates in the table itself, in the form of a statement

What are the various address translation schemes, What are the various addr...

What are the various address Translation schemes? Explain which scheme is used in Internet? Translation from a computer's protocol address to a corresponding hardware address i

Recent parallel programming models, A model for parallel programming is an ...

A model for parallel programming is an abstraction in addition its machine architecture is independent. A model is able to be implemented on different hardware and memory architect

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