Linking a program-microprocessor, Assembly Language

Linking a program

The DOS linking program LINK.EXE links the different object modules of function library routines and source program to produce an integrated executable code of the source program. The major input to the linker  is the  .OBJ  file  that  have  the object  modules of the source programs. The other useful information may be obtained from the files produced by MASM. The linker program is invoked by using the following options.

C --> A> LINK or


The .OBJ extension is ought to be for a file to be accepted by the LINK as a applicable object file. The first option may produced a display asking for the list file, object file and libraries as inputs and an expected name of the.EXE file to be produced. The other choice also generates the same display, but it will not ask for the .OBJ filename, as it is already declare at the command line. If any filenames are not entered for these files, by default, the source filename is referred with the different extensions. The process of entering the filenames in LINK is also similar to that in MASM. The LINK command display is as indicate in given Figure

The option input 'Libraries' in the display of given Figure expects any special library name of which the functions were used by the source program. Output of the LINK program is an executable file with the entered .EXE extension and filename. This executable filename can be entered further at the DOS prompt to execute the file.

In the advanced versions of MASM, the total procedure of assembling and linking is Joint under a single menu invokable compile function. The new versions of MASM have much more user-friendly and sophisticated facilities and choice that cannot be detailed here for the clear reasons. For further details users can refer to "Users' Manual-MASM, Version 5" and the Technical reference.

1458_linking prog.jpg

Posted Date: 10/12/2012 7:18:16 AM | Location : United States

Related Discussions:- Linking a program-microprocessor, Assignment Help, Ask Question on Linking a program-microprocessor, Get Answer, Expert's Help, Linking a program-microprocessor Discussions

Write discussion on Linking a program-microprocessor
Your posts are moderated
Related Questions
IMUL: Signed Multiplication: This instruction multiplies a signed byte by a signed bit in source operand e in the register AL or signed word in source operand by signed word in th

Data copy/transfer Instructions MOV: This data transfer instruction transfers data from one register or memory location to another register or memory location. The source can

Addressing mode of 8086 : Addressing mode specify a way of locating operands or data. Depending on the data types used the memory  addressing  modes and in the instruction  ,

Write a 32-bit program which when run, allows the user to select from a menu: (1)    Enter a Binary Number (2)    Enter a Decimal Number (3)    Enter a Hexadecimal Number

Write a M68000 assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n

how we can take permission

what is double hashing

AAS: ASCII Adjust AL After Subtraction AAS instruction correct the result in the AL register after subtracting operation of two unpacked ASCII operands. The result is in unpacked

Program: Write a program to perform addition of a series of 8-bit numbers. The series have 100 (numbers). Solution : In the first program, we have been implemented the add

MLIL: Unsigned Multiplication Byte or Word: This instruction multiplies an unsigned byte or word by the contents of the AL. The unsigned byte or word can be in any one of the gene