delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/08/14:05:02

From: Roberto Henriquez Laurent <shl24634 AT alumnos DOT inf-cr DOT uclm DOT es>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: New user's questions
Date: Tue, 08 Apr 1997 10:58:50 +0200
Organization: Universidad de Castilla-La Mancha
Lines: 30
Message-ID: <334A08CA.6429@alumnos.inf-cr.uclm.es>
References: <3349227c DOT 0 AT 138 DOT 100 DOT 56 DOT 25> <3348F627 DOT 13C2 AT cs DOT com>
Reply-To: shl24634 AT alumnos DOT inf-cr DOT uclm DOT es
NNTP-Posting-Host: 161.67.36.27
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

John M. Aldrich wrote:
> 
> Arturo Colorado Garin wrote:
> >
> > 1) Is it possible to link .O objects files generated by DJGPP with
> >    .OBJ ones generated by other C compilers and assembbmlers (MASM, TASM,...)?
> 
> No.  The formats are mostly incompatible in either direction.  See the
> FAQ (v2/faq210b.zip) chapter 17 for lots of information on converting
> this kind of code.  FYI, NASM (also available from SimTel) is an
> assembler capable of producing COFF (the format DJGPP uses) code from
> Intel syntax assembly.

MASM can produce COFF-format .OBJ files which can be easily linked to
DJGPP object files. You have to give the /coff switch to MASM and use a
calling convention understood by DJGPP (C calling convention I think).
You also have to deal with the underbars at the beginning of function
names. But after that, it works.

-- 

       La neurona autora de este mensaje         
               es propiedad de:                  
+-----------------------------------------------+ 
|  Roberto Henriquez Laurent                    |
+-----------------------------------------------+
|  mailto:shl24634 AT alumnos DOT inf-cr DOT uclm DOT es       |
+-----------------------------------------------+
 Y no se hace responsable de las opiniones que  
 hayan sido vertidas por otras neuronas.

- Raw text -


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