X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP and NASM Versions? Date: Mon, 17 Oct 2011 15:08:01 -0700 (PDT) Organization: http://groups.google.com Lines: 54 Message-ID: References: <201110140405 DOT p9E451fW019735 AT delorie DOT com> <201110151147 DOT 02064 DOT john AT wacontrols DOT com> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1318889357 1772 127.0.0.1 (17 Oct 2011 22:09:17 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Mon, 17 Oct 2011 22:09:17 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: x25g2000yqb.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKUARELSC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1,gzip(gfe) Bytes: 3685 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p9HMF2Jb011281 Reply-To: djgpp AT delorie DOT com Hi, On Oct 17, 1:53 pm, "Rod Pemberton" wrote: > "Rod Pemberton" wrote in message > > news:j7grqe$em7$1 AT speranza DOT aioe DOT org... > > > "John Wright" wrote in message > >news:201110151147 DOT 02064 DOT john AT wacontrols DOT com... > > > 2. Running DJgpp and NASM on a XP machine (dos window). I assume dos > > > versions of NASM okay. > > > I'm using an older version of Windows, so I don't know about DOS versions > > of NASM on XP, sorry.  From what others have said here, 2.04 is the > > version of DJGPP that's supposed to work better with XP or later. > > I'm not sure if you need this for DJGPP, but it may be worth a look. > > Japheth's NTDPMIX on this page: http://japheth.de/dwnload4.html Not necessary by default, no, but it might help in oddball cases. It's meant to improve XP's DPMI support even more. But average DJGPP apps work fine without it (again, thanks to CWS). (combining replies for brevity) >> Where does Win32 version come into play? I'm going to assume >> windows API related windows application programming? > > Yes. You probably can't access Win32 from DJGPP ... ( Can you? Scary if > you can ... ) DJGPP is GCC ported to DOS as 32-bit DPMI apps using "standard" (?) COFF format and a custom libc built from pieces (esp. FreeBSD). Rod, I know you know more about this than I do, just saying .... ;-) Several people have made hacks to DJGPP to output PE COFF (Win32), e.g. Japheth's 2.03p2 hack or Rainer's RSXNT/DJ. Japheth's patch just switches to zero-based model and PE COFF format while keeping everything else (e.g. libc), which means it's still a "DOS-only" app. RSXNT/DJ was an old hybrid that somehow switched / emulated the lower- level bits (via .DLLs or DOS extender) in exchange for using the same binary in both OSes (vs. EMX which was DOS + OS/2 instead). You can of course also just lump two entirely-separate .EXEs together (MZ stub in PE .EXE), which is rarely used. Can you write .VXDs? Yes, probably with help from above tools, but I don't think .VXDs work in later Windows (or so I've heard). Long story short: XP works "fairly" well for DOS stuff (esp. vs. later versions) but is deprecated and harder to find these days (soon to disappear like all things old, sadly).