delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/22/05:47:16

From: jonklipp AT freenet DOT edmonton DOT ab DOT ca ()
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Need help making standalone with PMODE/DJ--"Program too large to fit in memory"
Date: 22 Jan 1997 04:56:40 GMT
Organization: Edmonton FreeNet, Edmonton, Alberta, Canada
Lines: 29
Message-ID: <5c46m8$jl0$2@news.sas.ab.ca>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970121130840 DOT 27230B-100000 AT is>
NNTP-Posting-Host: fn2.freenet.edmonton.ab.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:

: On Sun, 19 Jan 1997, Brian Zaugg wrote:

: > Anyway, then I rename the cwsdpmi files that allowed me to run gcc so
: > that they won't be in the way, and run my program:
: > >who
: > Program too big to fit in memory.

: That's because you just effectively copied who into who.exe.  Since who is
: raw COFF image, DOS doesn't know how to run it, so it tries to interpret
: its beginning as a COM program (because it doesn't have the MZ signature),
: with obvious results. 

One other thing I found when playing with PMODE/DJ the other day.  I was
seeing if it would work with my Cheezy Asteroids Clone, with Allegro and
everything built in.  I found that if you stripped the COFF image (I
imagine the same would happen with gcc -s, but I didn't try it), and then
copy /B'ed it with pmodestub it didn't run with a "Program to big..."
message, but when I recompiled and DIDN'T strip it, it worked just fine.
Maybe Brian should try that and see if it works.

hope that helps,
jon

--
jon klippenstein internet:  klip AT cryogen DOT com
                 uucp:      alberta!ve6kik!dparrot!{root,klip}
                 ham radio: ve6klp

- Raw text -


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