Author Topic: what are ml and link /? options for....?  (Read 2807 times)


  • Member
  • **
  • Posts: 60
what are ml and link /? options for....?
« 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 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.........


  • Guest


  • Member
  • *****
  • Posts: 8829
  • Still using Abacus 2.0
    • DednDave
Re: what are ml and link /? options for....?
« Reply #2 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
/SUBSYSTEM:WINDOWS for apps that do not require a console window