Memory management in Cygwin

Wed Mar 22 09:52:00 GMT 2000

Mumit Khan wrote:

> On Sun, 19 Mar 2000, Alex wrote:
> > I'm interested to know if C/C++ compilers in Cygwin somehow optimize
> > memory allocation/deallocation routines like getting large blocks from
> > OS and then redistributing small portions to the program.
> > Thanks for help!
> It's not the compilers, but rather the runtime that manage the memory
> pools, and yes, Cygwin's memory manager does do pool optimization just
> like every other `malloc' package out there.
> Cygwin's malloc is based on, as far as I can tell, Doug Lea's public
> domain implementation. See his homepage
> for the design document (go down to the "Software" section).
> Regards,
> Mumit

 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?

Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list