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
Program is written but has errors returning values from the procedure.

1. Start your program at address $8500. To do this you need to inform the assembler, through the EQU and ORG assembler directives, that you want your program to start at $8500. Thi

RICS/CISC Architecture An essential aspect of computer architecture is the design of the instruction set for the processor.  The instruction set selected for a specific compute

Can any one assist me with this program. I am not efficient with assembly language and I need assistance badly. I am not asking anyone to do my work I just need help step by step

Zero flag: The next line compares the value in register. A with the value 1. If they are equivalent, the Zero flag is set (to 1). The next line then jumps to start: only if th

Assembly Language Example Programs We studied the entire instruction set of 8086/88, pseudo-ops and assembler directives. We have explained the process of entering an assembly

Cache components The cache sub-system may be divided into 3 functional blocks: Tag RAM, SRAM and theCache Controller. In real designs, these blocks can be implemented  by multi

Program : Write an assembly program to find out the number of positive numbers and negative numbers from a given series of signed numbers. Solution : Take the i th num

Read Architecture : Look Aside Cache In "look aside" cache architecture the main memory is located conflictingthe system interface. Both the cache main memory sees a bus cycle

Request a depreciation of the item, year of purchase, cost of item, number of years to be depreciated (estimated life ) and,the method of depreciation . Method of depreciation sh