The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Ghirai on April 10, 2006, 10:05:29 PM

Title: Produce OMF OBJs?
Post by: Ghirai on April 10, 2006, 10:05:29 PM
Does anyone know how can i produce OMF obj files, or how can i convert the ones generated by ml?

Thanks.

Title: Re: Produce OMF OBJs?
Post by: zcoder on April 10, 2006, 10:40:27 PM
Ghirai,
one of your swtich's to ML should be /omf

Zcoder....
Title: Re: Produce OMF OBJs?
Post by: Ghirai on April 10, 2006, 10:42:44 PM
Yeah, but it doesn't seem to work.

"invalid command-line option : /OMF"
Title: Re: Produce OMF OBJs?
Post by: zcoder on April 10, 2006, 10:47:43 PM

"invalid command-line option : /OMF"


What version are you using? and did you do it in lower case? as the /? displays all the options
and it is listed but in lowercase.

Zcoder....
Title: Re: Produce OMF OBJs?
Post by: Ghirai on April 10, 2006, 10:50:53 PM
I have ml 6.14.

QuoteML [ /options ] filelist [ /link linkoptions ]

/AT Enable tiny model (.COM file)         /nologo Suppress copyright message
/Bl<linker> Use alternate linker          /Sa Maximize source listing
/c Assemble without linking               /Sc Generate timings in listing
/Cp Preserve case of user identifiers     /Sf Generate first pass listing
/Cu Map all identifiers to upper case     /Sl<width> Set line width
/Cx Preserve case in publics, externs     /Sn Suppress symbol-table listing
/coff generate COFF format object file    /Sp<length> Set page length
/D<name>[=text] Define text macro         /Ss<string> Set subtitle
/EP Output preprocessed listing to stdout /St<string> Set title
/F <hex> Set stack size (bytes)           /Sx List false conditionals
/Fe<file> Name executable                 /Ta<file> Assemble non-.ASM file
/Fl[file] Generate listing                /w Same as /W0 /WX
/Fm[file] Generate map                    /WX Treat warnings as errors
/Fo<file> Name object file                /W<number> Set warning level
/FPi Generate 80x87 emulator encoding     /X Ignore INCLUDE environment path
/Fr[file] Generate limited browser info   /Zd Add line number debug info
/FR[file] Generate full browser info      /Zf Make all symbols public
/G<c|d|z> Use Pascal, C, or Stdcall calls /Zi Add symbolic debug info
/H<number> Set max external name length   /Zm Enable MASM 5.10 compatibility
/I<name> Add include path                 /Zp[n] Set structure alignment
/link <linker options and libraries>      /Zs Perform syntax check only

Title: Re: Produce OMF OBJs?
Post by: arafel on April 10, 2006, 11:00:32 PM
ml should produce OMFs by default, that is if you don't specify /coff switch an OMF object will be produced.
Title: Re: Produce OMF OBJs?
Post by: Ghirai on April 10, 2006, 11:11:37 PM
It works, thanks.
Title: Re: Produce OMF OBJs?
Post by: GregL on April 10, 2006, 11:56:46 PM
Just a note, in ML 6.15 the /omf switch was added and in ML 7.00 /coff became the default (IIRC).

Title: Re: Produce OMF OBJs?
Post by: Vortex on April 11, 2006, 10:01:06 AM
There also is a coff2omf converter by Digital Mars but they supply it as a module of a commercial package.