News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

what are ml and link /? options for....?

Started by shaikkareem, June 04, 2014, 08:28:05 PM

Previous topic - Next topic

shaikkareem

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.........


dedndave

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