delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/04/04:36:53

Date: Tue, 4 Sep 2001 11:37:25 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: galasso <galasso AT home DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: gcc hello.c -o hello.exe 55 seconds to compile and link
In-Reply-To: <CgXk7.80838$K6.32243526@news2>
Message-ID: <Pine.SUN.3.91.1010904113703.28761J-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 4 Sep 2001, galasso wrote:

> I ran go32-v2 and it reports :
> DPMI memory available 129471kb
> DPMI swap space 0kb

ZERO swap size?  This is a plain DOS system, right?  So you are using
CWSDPMI as your DPMI host, right?  And your C: disk is writable,
correct?  Then how come you have no swap space?

> my config.sys file has the following entries:
[...]
> loadhigh c:\dos\smartdrv.exe c+ d+ f+ 8192

This line should go to autoexec.bat, not to config.sys.  See section
3.9 of the DJGPP FAQ list.  Also, I suggest to add the /n switch, for
better disk performance.

> It took gcc hello.c -o hello.exe         55 seconds to compile and link.
> This was a one line program. What am I missing ? (or is this normal)

This is NOT normal (takes less than half a second on my P860).  It's
probably slow because you didn't set up the disk cache correctly.

See section 7.1 of the FAQ for other possible reasons, and for info
about the compilation speed you should expect.

> Should I install himem and set up a ram disk for work files for gcc ? (how)

RAM disk generally helps, see the advice in section 3.9 of the FAQ.

- Raw text -


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