www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/07/26/14:33:59

Date: Tue, 26 Jul 94 09:14:15 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: wtwong AT fawlty8 DOT eng DOT monash DOT edu DOT au
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Compilation Speed and Windows Dos Shell

> 	I noticed a large discrepancy in the compilation times of gcc
> 	when running under normal dos and under the dos prompt in windows.
> 	It runs very much faster under the windows dos prompt. I timed the
> 	compilation of a c++ object file and while it took about 8 minutes
> 	under dos, it was all over in about 30 seconds under windows !!
> 	Any reason why this should be so ? Furthermore the dos shell was 
> 	set to execute in the background.
> 	Not that I mind the speed up :-) but I'd sure like to know why.
> 	Thanks for any answers.

Run "go32" at both prompts and see how much memory it gives you.
Chances are, there isn't enough memory in dos mode.

My record for compiling hello.c is 1.9 seconds.  This was at the dos
prompt.


- Raw text -


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