What is the full form of TII is an assembler?
Table of Incomplete Instructions
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.
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.
Let's look at the given options:
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.
| 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. |
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.
The ration of the number of girls and boys in a school is 8 : 7. If the percentage increase in the number of girls and boys is 10% and 20% respectively, what will be the new ratio?
The cheapest means of transport is:
The property of Catenation is most readily predominant in:
Which newspaper edited by Bal Gangadhar Tilak, was one of the strongest critics of the British rule?
Which of the following is NOT a cause of food and water contamination?