delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/24/01:15:31

From: "Marp" <Marp AT 0 DOT 0 DOT 0 DOT 0>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Compiling with PMODE
Date: Thu, 24 Jun 1999 00:10:06 -0400
Organization: Netcom
Lines: 32
Message-ID: <7ksb30$acp@dfw-ixnews16.ix.netcom.com>
References: <7ks73a$m43$1 AT pema DOT scs DOT unr DOT edu>
NNTP-Posting-Host: prn-nj1-09.ix.netcom.com
X-NETCOM-Date: Wed Jun 23 11:10:08 PM CDT 1999
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

There is PMODE/DJ which is a stub replacement for the stub that comes with
djgpp. It provides dpmi services if needed so your exe would not need a
separate dpmi server. It does not support virtual memory. You can get it at
a simtel mirror in the djgpp distribution section (v2misc I think). To use
it, you first build your program like normal and then remove the standard
stub with exe2coff and append the pmodedj stub like this:

copy /b pmodestub.exe+programname outname.exe

the /b switch is important and so is the ordering of the filenames. I don't
remember the exact name of the stub exe but it's something like that. Just
replace the filenames I used above with the actual names used. Just remember
that the pmode stub can provide dpmi services only if no other dpmi server
is loaded (just like cwsdpmi) so if your program runs in a windows dos box,
dpmi will be provided by windows.

Jeremy L. Buchmann <jlbuchma AT news DOT scs DOT unr DOT edu> wrote in message
news:7ks73a$m43$1 AT pema DOT scs DOT unr DOT edu...
> I hear something about PMODE every once in a while, but can't find any
> documentation on compiling with it (if that is what you do???).
>
> I just want to have a standalone executable, and I DON'T WANT virtual
> memory at all...is PMODE (whatever it is) the way to do it?
>
> AHIA, TIA
>
> -------------------------------------------------------------------
> Jeremy Buchmann       "Those who trade freedom for safety deserve
> jlbuchma AT scs DOT unr DOT edu   neither freedom nor safety." -- Ben Franklin
> -------------------------------------------------------------------


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019