The MASM Forum

General => The Campus => Topic started by: shaikkareem on June 04, 2014, 08:28:05 PM

Title: what are ml and link /? options for....?
Post by: shaikkareem on June 04, 2014, 08:28:05 PM
hello..........every one..........
i am using masm32................and getting hand over with it conveniently.
while using command prompt to compile and run the programs i've noticed the 'ml' and 'link' got some options with them...while pressing '/?' at the end of the command....at the instant the result of particular command (ml /? or link/?) showing much information regarding to sub commands.......but where i  do find good information about them.....just got a curiosity that they are worth of knowing.....

can any body help me with this.........
Title: Re: what are ml and link /? options for....?
Post by: sinsi on June 04, 2014, 08:51:57 PM
Microsoft Macro Assembler Reference (http://msdn.microsoft.com/en-us/library/afzk3475.aspx)
Linker Options (http://msdn.microsoft.com/en-us/library/y0zzbyt4.aspx)
Title: Re: what are ml and link /? options for....?
Post by: dedndave on June 04, 2014, 11:19:25 PM
we generally use
ml /c /coff MyProgram.asm

/c tells the assembler to assemble the source file, without linking
it will "call" the linker, otherwise
we often use resource files or other modules, so we want to handle the linker indepentently

/coff tells the assembler to create a COFF format object module, rather than OMF format

when we link, we use
/SUBSYSTEM:CONSOLE for apps that run in a console window
or
/SUBSYSTEM:WINDOWS for apps that do not require a console window