78% found this document useful (9 votes)
28K views

What Are The Basic Functions of An Assembler

An assembler converts assembly language code into machine language by performing several key functions: it translates mnemonic operation codes and symbolic operands to their machine language equivalents, assigns addresses to labels, builds machine instructions by combining operation codes and operands, converts data constants to internal representations, and writes the resulting object program and assembly listing files. The assembler translates source code statements into machine-readable object code, assigns storage locations, and produces listings to help debug the translated program.

Uploaded by

xyogesh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
78% found this document useful (9 votes)
28K views

What Are The Basic Functions of An Assembler

An assembler converts assembly language code into machine language by performing several key functions: it translates mnemonic operation codes and symbolic operands to their machine language equivalents, assigns addresses to labels, builds machine instructions by combining operation codes and operands, converts data constants to internal representations, and writes the resulting object program and assembly listing files. The assembler translates source code statements into machine-readable object code, assigns storage locations, and produces listings to help debug the translated program.

Uploaded by

xyogesh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

What are the basic functions of an assembler?

in simple way u can say assembler converts the assembly language into machine language. the main function of an assembler is assign addresses to labels. --------------Basic Assembler Functions Convert mnemonic operation codes to machine language equivalents Convert symbolic operands to machine addresses (pass 1) Build machine instructions Convert data constants to internal representations Write the object program and assembly listing files

---------------------The assembler program, also referred to as the assembler, processes the machine, assembler, and macro instructions you have coded (source statements) in the assembler language, and produces an object module in machine language. Processing involves the translation of source statements into machine language, assignment of storage locations to instructions and other elements of the program, and performance of auxiliary assembler functions you have designated. The output of the assembler program is the object program, a machine language translation of the source program. The assembler produces a printed listing of the source statements and object program statements and additional information, such as error messages, that are useful in analyzing the program. The object program is in the format required by the linker. BASIC ASSEMBLER FUNCTIONS Fundamental functions of an assembler: Translating mnemonic operation codes to their machine language equivalents. Assigning machine addresses to symbolic labels used by the programmer

You might also like