Mail Archives: djgpp/2001/04/27/10:39:46
> From: "MarKol" <markol4 AT wp DOT pl>
> 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.
- Raw text -