Linking a program-microprocessor, Assembly Language

Assignment Help:

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


Related Discussions:- Linking a program-microprocessor

8086, Write a program to mask bits D3D2D1D0 and to set bits D5D4 and to inv...

Write a program to mask bits D3D2D1D0 and to set bits D5D4 and to invert bits D7D6 of ax register

Write a program to find the average of the array , Write a program on the a...

Write a program on the assembly language to do the following: 1- Allocate array with 32bit 100 element 2- Prompt the user to enter the maximum or the upper bound of the rando

Code for reading flow & generating serial output, Assembly Code for Reading...

Assembly Code for Reading Flow & Generating Serial Output The timer is timer 1 is set for the baud rate 9600, as the crystal used is of 11.0592 Hz.  Then the timer 1 is starte

Instruction formats-microprocessor, Instruction Formats A machine langu...

Instruction Formats A machine language instruction format has 1 or more number of fields linked with it. The first field is known as operation code field or op code field, whic

Cmp-arithmetic instruction-microprocessor, CMP: Compare: - This instructio...

CMP: Compare: - This instruction compares the source operand, which can be a register or memory location an immediate data with a destination operand that might be a register or a

Matrix addition, how to write the alp for matrix addition in microprocessor...

how to write the alp for matrix addition in microprocessor 8086?

English, how we can take permission

how we can take permission

Risc characteristics-microprocessor, RISC Characteristics : The  concep...

RISC Characteristics : The  concept  of  RISC  architecture  include  an  attempt  to  reduce  execution  time  by make  simple  the instruction set of the computer. The main c

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd