Page 75 - DCAP507_SYSTEM_SOFTWARE
P. 75
Unit 4: Design of Assembler
2. Many other routines entail the processing of tables by storing or searching (e.g., POT_TABLE, Notes
MOT_TABLE, LIT_TABLE, SYSTO, STGET).
Tables
Assemblers depend chiefly on Tables. Obtaining the tables established correctly is critical to the
development of a straightforward assembler. Most assemblers depend on:
Machine Operations table comprises all the instructions, binary equivalent, length, and valid
instruction format (parsing information).
Pseudo-op table that comprises all the pseudo-ops length (if necessary), format (parsing
information) Symbol Table that includes all program defined labels/variables, length, types
(label, numeric, character, address), relative (to begin of the program) memory location, and
location(s) where utilized.
Literal table (relies on how literal are implemented) which includes all program defined literals,
length, type (numeric, character, address), relative (to start of the program) memory location,
and location(s) where utilized.
Data Files/Tables
Task Illustrate the function of tables in designing assemblers.
Self Assessment
Fill in the blanks:
1. ........................... converts code in one language into another.
LOVELY PROFESSIONAL UNIVERSITY 69