Mail Archives: djgpp/1997/04/09/06:55:29
On Tue, 8 Apr 1997, Roberto Henriquez Laurent wrote:
> 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.
Caveat emptor. Others reported here that the mixed DJGPP/MASM code
will link OK, but crash at run time. At least in one case I was told
that the code produced by MASM for a function call is different from
what Gas generates, and therefore when the linker resolves these
calls, you get code that might crash.
- Raw text -