Date: Fri, 27 Apr 2001 16:16:14 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "MarKol" Message-Id: <5567-Fri27Apr2001161613+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <9cbg7f$66t$1@sunrise.pg.gda.pl> (markol4@wp.pl) Subject: Re: Help me : DJGPP + assembly References: <9cbg7f$66t$1 AT sunrise DOT pg DOT gda DOT pl> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "MarKol" > Newsgroups: comp.os.msdos.djgpp > Date: Fri, 27 Apr 2001 12:06:17 +0200 > > I encountered problem and I can't cope with it. > I use DJGPP under DOS and link "C" code with assembly (MASM format). > It's very important to use MASM format. You _are_ aware that latest versions of Gas, the GNU assembler, have an option to accept Intel-style assembly, yes? With that feature, the only reason you might have to use MASM is a massive use of MASM macros. Otherwise, I'd strongly recommend to use Gas and save yourself lots of trouble (see below). > What's wrong? Please, help me. I must somehow use this MASM-format > assembly files with DJGPP (these files include SSE and MMX > instructions, I'm afraid there is no masm 2 as converter with SSE and > MMX instructions). Latest versions of Gas support SSE and MMX. > I suspect that problem is in relocation, but I don't know how to fix > it. Yes, that's true: the relocations produced by MASM are incompatible with what the DJGPP linker expects. A recent thread on this forum discussed the problems in detail, you could probably find it by searching for "MASM" in http://www.delorie.com/djgpp/mail-archives/. One of the messages in that thread included a pointer to a program which can patch a MASM-produced object file to be compatible with DJGPP. But I think you should seriously consider using Gas.