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

C --> A> LINK KMB.OBJ

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
Type of Microprocessor : Microprocessors fall into 3 categories: Single Chip Microcomputers: - Contains RWM, ROM, microprocessor, I/O port, timer and clock. General pu

Using the AddSub program from Ch3 under c:\Masm615\examples as a reference, write a program that subtracts three 16-bit integers using only registers. Insert a call DumpRegs statem

A/D conversion: Basic tasks: (a) Write a program that will read and display the analog voltage on pin PE7 approximately once every second. (b) Write a program that will read and d

The main objective of the assignment is to explore the knowledge regarding parallel ports of a computer system. You can read and write datato/from the parallel port using IN and OU

What is the hex for + and - under with a sum involved

) What is the difference between re-locatable program and re-locatable data?

ALP to preform of two 16-bit numbers in register addressing mode

Memory Segmentation : The  memory in an 8086/8088  based system is organized as segmented memory. In this scheme, the whole physically available memory can be divided into a n

Task One Produce a menu such as the one below (remember to keep to this specification). M E N U 1, Enter Number 1 2, Enter Number 2 3, Display num1 and num2 4, D

Program : A program to move a string of the data words from offset 2000H to offset 3000H the length of the string is OFH. Solution : For writing this program, we will use