www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/17/09:20:50

From: Sam Littlewood <SAM AT argonaut DOT com>
Organization: Argonaut Ltd.
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Fri, 17 Jun 1994 13:01:36 GMT
Subject: Using masm with gcc

This is something I have just discovered -

If you have MASM 6.11, (ie: the one that is NT aware rather than OS/2 
aware), then simply give it the '-coff' switch to generate objects
that are linkable with GNU ld.

This is exceedingly useful, since it keeps my asm source files compatible
between DJGPP, Watcom, Symantec, and Microsoft. - previously I was using
'wdisasm -au | sed' to convert .obj to .s, and then reassemble, but this
was very flakey.

In general, if you want to convert an Intel/Microsoft object file to
coff, you can use LIB32 from Microsoft C8 to put it into a library, and 
then extract it again. LIB32 converts input files to coff.

         ------------------------------------------
Sam Littlewood                                   sam AT argonaut DOT com
Argonaut Software Ltd.                   saml AT cix DOT compulink DOT co DOT uk
         Tel: +44 81 200 5777  Fax: +44 81 200 9866

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019