Date: Sun, 27 Apr 1997 12:11:19 +0300 (IDT) From: Eli Zaretskii To: Don Berkley 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.