cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/07/16:23:02

Date: Mon, 7 Jun 1999 16:22:45 -0400
Message-Id: <199906072022.QAA04795@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <Version.32.19990607220311.00dccab0@axpsu.fpf.slu.cz> (message
from Wigoo on Mon, 07 Jun 1999 22:04:04 +0200)
Subject: Re: a fwe question
References: <Version DOT 32 DOT 19990607220311 DOT 00dccab0 AT axpsu DOT fpf DOT slu DOT cz>
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Is there any basic rules to have faster program? I mean something about
> source code like to use register variables instead of int or *int. 

This wouldn't be djgpp-specific, except to say try to reduce the
number of system calls you make (like open, time, etc) because those
are slower in djgpp than in other systems.

> How to find the size of physical memory,  free physical memory,
> all(physical+virtual) memory and all free memory? 

Look in <dpmi.h> for a number of such functions.  Avoid the ones
marked "1.0" as Windows won't support them.

> Is there any chance to see error "Stack overflow" or "Heap overflow"?

Windows doesn't support that feature in the memory model DJGPP uses.

> Where can I find the version of my gcc compiler, what`s the latest version
> and where can I download it from?

gcc 2.8.1 is the latest version for djgpp, but egcs 1.1.2 is also
available in v2gnu/egcs/

Type "gcc -v" to see what version you have.

- Raw text -


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