delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/22/18:25:16

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs
Date: Wed, 22 Mar 2000 17:24:19 -0600 (CST)
From: Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>
To: Alex <alexx AT inbox DOT lv>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Memory management in Cygwin
In-Reply-To: <38D90755.CCBB8862@inbox.lv>
Message-ID: <Pine.HPP.3.96.1000322171428.28815C-100000@hp2.xraylith.wisc.edu>
MIME-Version: 1.0

On Wed, 22 Mar 2000, Alex wrote:

>  Thanks for help, but it still isn't clear for me, how the memory management
> is done in the programs compiled in Cygwin. How about executables build with
> -mno-cygwin option? As I know they don't use any runtime libraries. Does the
> linker put memory optimization code in them?

Programs compiled/linked with -mno-cygwin are *not* Cygwin apps, and the
memory management in that case is provided by Microsoft's runtime library
(CRTDLL in this particular case).

Other than perhaps a few odd embedded systems, pretty much everything else 
in the world uses runtime libraries.

The linker typically has nothing to do with memory management.

Cygwin/Mingw programs use malloc or some package built on top of it, 
and malloc uses OS-specific hooks to allocate chunks of memory and
manages that on behalf of the user. Doug Lea's excellent paper on
his malloc package talks about this issue, and so do plenty of other
articles and books.

I get the feeling that I haven't a clue as to what information you're 
really after. 

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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