Mail Archives: djgpp/1997/04/08/14:05:02
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 -