www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/22/09:08:49

Date: Sun, 22 Mar 1998 17:08:20 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jason Dagit <thedagit AT mail DOT coos DOT or DOT us>
cc: djgpp AT delorie DOT com
Subject: Re: 386 (anti)benchmarks!
In-Reply-To: <3515145B.50C5422C@mail.coos.or.us>
Message-ID: <Pine.SUN.3.91.980322170323.12643J-100000@is>
MIME-Version: 1.0

On Sun, 22 Mar 1998, Jason Dagit wrote:

> gpp test.cc -o test.exe
> This took about 2 hrs give or take a half hour! and produced ~300k file.
> 
> Now, that is a difference.  On my Pentium 120mhz 80megs of RAM with 2
> gigs of HD the compile times are less then 10 seconds.

The C++ compiler is a memory hog.  On your memory-starved machine it 
pages like hell, and is therefore much slower.

If at all possible, add memory.  If not, use every trick in the book to 
make your DOS file I/O as fast and as efficient as you can.  You didn't 
post any system configuration info, so I'm unable to give specific 
advice, but section 3.9 of the DJGPP FAQ list has some guidelines, 
including for memory-starved machines.

> I really didn't expect the C++ to compile so slowly.  How did anyone
> ever write software on those older computers? :)

There is an opinion at large that vendors and programming language 
designers have conspired to push us to buy ever faster and 
memory-abundant machines...

Another alternative is to not use C++ ;-).

- Raw text -


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