delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/27/17:45:30

From: dontmailme AT iname DOT com (Steamer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: MASM coff images
Date: Sat, 27 May 2000 21:20:42 GMT
Organization: always disorganized
Lines: 35
Message-ID: <39303c06.17422431@news.freeserve.net>
References: <04039b30 DOT 28983095 AT usw-ex0101-008 DOT remarq DOT com> <39301ea2 DOT 9896444 AT news DOT freeserve DOT net> <097c68c0 DOT 5c25a710 AT usw-ex0103-023 DOT remarq DOT com>
NNTP-Posting-Host: modem-125.south-dakota.dialup.pol.co.uk
X-Trace: news6.svr.pol.co.uk 959462443 24785 62.137.92.125 (27 May 2000 21:20:43 GMT)
NNTP-Posting-Date: 27 May 2000 21:20:43 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Dogansmoobs wrote:

>Are you sure that the coff image output by masm is of a
>differant format used by gcc?

Yes, subtly different.

>Because it says on section 17.2
>of the djgpp faq about converting INTEL to AT&T syntax that
>using masm is an alternative.
>
>From the djgpp FAQ section 17.2:
> * Obtain a copy of Microsoft MASM 6.11. It has a -coff option
>to generate object code in COFF format which can be submitted to
>GCC, so you can compile your original source.

I had forgotten that the FAQ says that.  I tried a simple example
(generating the MS-COFF with NASM rather than MASM) and it did
indeed work.  So you may be able to get MASM to work with DJGPP
if you can convince it not to generate incompatible things.

However, I just noticed this in your original post:

>.MODEL MEDIUM,C

This isn't going to work.  DJGPP needs flat-model 32-bit code.

Try a very simple example to start with.  If it doesn't work then
post everything here (the entire .asm file, the entire .c file,
the command lines used for both gcc and MASM).  Eli says in the
FAQ that he needs more information about how to use MASM with
DJGPP, so it would be useful to see exactly what problems you
may have.

S.

- Raw text -


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