Mail Archives: djgpp/1996/10/17/14:47:12
From: | Eric Rasmussen <rasmus AT scs DOT unr DOT edu>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Using MASM 6.11 w/ DJGPP 2.0?
|
Date: | Wed, 16 Oct 1996 17:40:48 -0700
|
Organization: | A poorly-installed InterNetNews site
|
Lines: | 49
|
Message-ID: | <Pine.OSF.3.93.961016173141.22315A-100000@surfer2.surf.scs.unr.edu>
|
NNTP-Posting-Host: | surfer2.surf.scs.unr.edu
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I have been working with gas, and I'm going out of my mind. :-) So I
tried to use MASM 6.11 and compile my .ASM file to COFF format so I could
link in the object file using gcc. However, I get GPFs and segment
violations when I call any procedure in the .ASM file. Does anyone know
if there's a way to make MASM procedures work with DJGPP? Here's the code
I am using (both the .ASM and .cc files):
test.asm
--------
.386P
.MODEL FLAT,C
text SEGMENT DWORD PUBLIC USE32
MyTest PROC
PUBLIC MyTest
Ret ; Boy, what a complex routine this is... :-)
MyTest ENDP
text ENDS
END
test2.cc
--------
extern "C" {
void MyTest();
}
int main(void)
{
MyTest();
return 0;
}
I compile using the command line:
gxx test2.c test.o -o test2.exe
Thanks in advance for any help!
==============================================================================
+ Eric Rasmussen
+ University of Nevada, Reno
+ Computer Science
+ rasmusse AT cs DOT unr DOT edu
==================================================================
- Raw text -