From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: Using MASM 6.11 w/ DJGPP 2.0? Date: Fri, 18 Oct 1996 14:15:32 -0400 Organization: Cornell University Lines: 28 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <3267C944.BD@cornell.edu> References: NNTP-Posting-Host: cu-dialup-0076.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Eric Rasmussen To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Eric Rasmussen wrote: > > 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 don't know much about this topic but i recently downloaded nasm (unfortunately i cannot remember the location right now but if you search the mail archives, you should be able to find it). anyway, nasm can produce win32 coff format files. however, and i think this is the relevant part for your problem, the documentation states that win32 coff format is a _variant_ of the standard coff format. apparently it has a number of ms extensions etc. so, if you are generating win32 coff files with masm, that might be your problem. in any case, you might want to give nasm a try. it _is_ an early release but seems to work ok. but bear in mind that i am new to intel assembler. anyway, hope this helps. -- ******************************************************************* A. Sinan Unur WWWWWW |--O+O mailto:asu1 AT cornell DOT edu C ^ mailto:sinan AT econ DOT cit DOT cornell DOT edu \ ~/ http://www.bqnet.com/sinan/ *******************************************************************