cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/27/05:17:53

Date: Sun, 27 Apr 1997 12:11:19 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Don Berkley <berk002 AT ibm DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: How Come the Executable Files are SO Large?
In-Reply-To: <01bc527f$e8144ce0$030101c0@ibm.ibm.net>
Message-ID: <Pine.SUN.3.91.970427121047.17804P-100000@is>
MIME-Version: 1.0

On 26 Apr 1997, Don Berkley wrote:

> writing for a college course.  It is a very small compiler
> and must run stand alone.  So, I packaged my compiler
> with pmodstub.exe and tried to run it on a second DOS
> machine that does not have DJGPP installed on it.  I 
> received a message stating that the program was too 
> large for memory and I have 8MB on this machine!

I'd guess that you did something wrong when you bundled your program
with pmode.  Please post the exact commands that you used to compile
and link your program and to bind it with pmode stub.

> file sizes (at that time).  I did not think to look in the
> FAQ because the .exe file was twice as big as the
> .exe file compiled under a MSWin C-compiler.

Probably because you didn't use -s switch to gcc when linking, so it
left the debugging symbols in the program.

> I can
> not hand in a project that requires more than 8MB, so
> I'll have to hand in the MSWin copy of the .exe file.

That's not a real memory problem, you are probably just trying to run
a file that isn't in a valid DOS .exe format, so DOS barfs.

- Raw text -


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