Q. What is an assembler ?
Assembler converts each assembly language statement into the corresponding machine-language statement.
There are two types of assemblers.
One-pass assemblers go through the source code once and assume that all symbols will be defined before any instruction that references them.
Q.What are various steps to design an assembler?
1. Statement of problem:
2. Data structure:
3. Format of data bases:
Here we specify the format and content of each of the data bases task that must be undertaken even before describing the specific algorithm underlying the assembly design.
4 Algorithm: There are two passes in this
Q.Define Lexical Analysis
lexical analysis is the process of converting a sequence of characters into a sequence of tokens. A program or function which performs lexical analysis is called a lexical analyzer.