| www.delorie.com/djgpp/mail-archives/browse.cgi | search |
| Date: | Sun, 5 Nov 2000 08:27:39 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | Danny Byers <dan AT magma DOT net> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: using COFF object file from MASM to compile C |
| In-Reply-To: | <3A047280.3ADB37CB@magma.net> |
| Message-ID: | <Pine.SUN.3.91.1001105082457.27000C-100000@is> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
On Sat, 4 Nov 2000, Danny Byers wrote: > Hey! I am using MASM 6.11 (which can output the COFF format object > files) and I need to interface my assembly code with some C functions > that I have written. Be prepared for a bumpy ride: people who tried this reported problems. One thing you definitely want to make sure is that the assembly code was written for protected mode, not for real mode. See section 17.3 in the FAQ for more about this. > How can I use DJGPP with the object file that I got from MASM? I am new > to using DJGPP. What would be the command (ie. gcc file.c asmcode.obj) > to include the object file so that my C code will work with the assembly > code? The command you show above is correct: just include the object file(s) as part of the link command line.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |