delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/08/01:14:20

Date: Mon, 8 Jul 1996 08:09:14 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: entropys AT netcom DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: Linking ASM files
In-Reply-To: <31dff304.6103069@10.0.2.1X119>
Message-Id: <Pine.SUN.3.91.960708080427.28866A-100000@is>
Mime-Version: 1.0

On Sun, 7 Jul 1996 entropys AT netcom DOT com wrote:

> I have several C callable ASM routines together in an ASM file.  These
> ASM routines were designed to be C callable under borland/microsoft C.
> What do I need to do to be able to link these files into a djgpp c
> program?

If that's a one-shot project, and you don't need to maintain that ASM 
code, you can try using a version of MASM that can emit COFF object files 
that DJGPP expects.  (The FAQ list has the details in section 17.3.)  But 
I recommend to convert your code to the AT&T format accepted by the GNU 
Assembler (which comes with DJGPP), because in the long run that will 
allow you to make maintenance easier.  The above section in the FAQ tells 
you about available methods for such a conversion.

The DJGPP FAQ list is available as v2/faq200b.zip from the same place you 
get DJGPP.

- Raw text -


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