All Exams Test series for 1 year @ ₹349 only
Question

What is the full form of TII is an assembler?

The correct answer is

Table of Incomplete Instructions

Understanding Assemblers and TII

An assembler is a program that translates assembly language code into machine code. Assembly language uses mnemonics and symbols, which are easier for humans to understand than raw binary machine code. The translation process typically involves reading the assembly code, understanding the instructions and data, and generating the corresponding binary instructions that the computer's processor can execute.

During this translation process, an assembler often uses different data structures, such as tables, to keep track of symbols, opcodes, and other information. Common tables include the Symbol Table (SYMTAB) which stores symbols and their addresses, and the Opcode Table (OPTAB) which stores machine opcodes for assembly language mnemonics.

What is TII in an Assembler?

In the context of assemblers, particularly two-pass assemblers, a specific table is used to handle instructions that cannot be fully translated in the first pass. This is often due to forward references, where a symbol (like a label for a jump target or data address) is used in an instruction before it has been defined later in the program.

The full form of TII is the Table of Incomplete Instructions.

During the first pass of a two-pass assembler, the assembler reads the source code, builds the Symbol Table, and determines the address of each instruction and data item. If it encounters an instruction that uses a symbol not yet defined (a forward reference), it cannot generate the complete machine code for that instruction because the symbol's address is unknown. Such an instruction is considered 'incomplete'.

Instead of stopping, the assembler records information about this incomplete instruction in the Table of Incomplete Instructions (TII). This information typically includes the location (address) where the incomplete instruction's machine code will reside and details about which part of the instruction needs the symbol's address and which symbol it is.

In the second pass, after the Symbol Table is complete (containing all symbol addresses), the assembler reads the code again (or uses the information from pass 1). It then uses the TII to revisit the locations of incomplete instructions and fill in the missing addresses using the resolved symbol values from the Symbol Table.

Analyzing the Options for TII

Let's look at the given options:

  • Translation of Information Instruction: This option suggests TII is involved in translating information instructions. While translation is the assembler's main job, 'Translation of Information Instruction' doesn't represent a specific table structure or a recognized component by this name in standard assembler design principles.
  • Table of Incomplete Instructions: This option directly matches the description of a table used in multi-pass assemblers to manage instructions that cannot be fully translated during the initial pass due to unresolved forward references. This table holds details about instructions needing completion once all symbols are defined.
  • Table of Information Instructions: Similar to the first option, this suggests a table related to 'Information Instructions'. This phrasing is not standard terminology for a key table used in the assembly process to handle incomplete translations caused by forward references.
  • Translation of Instructions Information: This option, like the others involving 'Translation' or 'Information Instructions', does not refer to a specific, well-known table structure within an assembler responsible for handling incomplete instructions resulting from forward references.

Based on the function of handling instructions that are temporarily incomplete during the assembly process, the term Table of Incomplete Instructions is the correct full form for TII in the context of an assembler.

Revision Table: Key Assembler Concepts

Term Description
Assembler Translates assembly language into machine code.
Two-Pass Assembler Processes source code in two passes (scan-and-build symbols, then translate).
Pass 1 Builds the Symbol Table, determines instruction addresses, identifies forward references.
Pass 2 Generates machine code using the complete Symbol Table from Pass 1, resolves forward references.
Symbol Table (SYMTAB) Stores symbols (labels, variable names) and their corresponding memory addresses.
Opcode Table (OPTAB) Stores assembly language mnemonics (like ADD, SUB, JMP) and their corresponding machine code opcodes.
Table of Incomplete Instructions (TII) Stores information about instructions that contain forward references and cannot be fully translated in Pass 1.

Additional Information on Assembler Tables

Assemblers use various tables to streamline the translation process. The exact set of tables can vary slightly depending on the assembler's design and the architecture it targets, but SYMTAB and OPTAB are fundamental. TII is particularly relevant in multi-pass assemblers designed to handle programs with forward references efficiently.

Single-pass assemblers attempt to translate code in one go. They might handle forward references differently, perhaps by leaving operand fields empty and then patching them later, or by requiring all symbols to be defined before use (which limits programming flexibility).

The TII serves as a crucial link between Pass 1 and Pass 2 in a two-pass assembler, ensuring that all instructions, including those with forward references, are correctly translated into machine code once all necessary address information is available.

Was this answer helpful?

Important Questions from Miscellaneous

  1. A stone is thrown horizontally from the top of a 20 m high building with a speed of 12 m/s. It hits the ground at a distance R from the building. Taking g = 10 m/s2 and neglecting air resistance will give :

  2. A sphere of volume V is made of a material with lower density than water. While on Earth, it floats on water with its volume f1V (f1 < 1) submerged. On the other hand, on a spaceship accelerating with acceleration a < g (g is the acceleration due to gravity on Earth) in outer space, its submerged volume in water is f2V. Then:

  3. A railway wagon (open at the top) of mass M1 is moving with speed v1 along a straight track. As a result of rain, after some time it gets partially filled with water so that the mass of the wagon becomes M2 and speed becomes v2. Taking the rain to be falling vertically and the water stationery inside the wagon, the relation between the two speeds v1 and v2 is :

  4. Consider the following statements:

    1. Distance between the longitudes becomes zero on North Pole and South Pole.

    2. Distance between the longitudes is maximum on the Equator.

    3. Number of longitudes is more than number of latitudes.

    Which of the statements given above is/are correct?

  5. One block of 2⋅0 kg mass is placed on top of another block of 3⋅0 kg mass. The coefficient of static friction between the two blocks is 0⋅2. The bottom block is pulled with a horizontal force F such that both the blocks move together without slipping. Taking acceleration due to gravity as 10 m/s2, the maximum value of the frictional force is :

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App