X-Spam-Check-By: sourceware.org
Message-ID: <462E8715.DFA7F457@dessent.net>
Date: Tue, 24 Apr 2007 15:39:17 -0700
From: Brian Dessent <brian@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Can I tell which version of newlib I have?
References: <f0lqsf$pp1$1@sea.gmane.org> <462E734D.F08DE9A@dessent.net> <462E7390.3DC65869@dessent.net> <f0lvro$mi1$2@sea.gmane.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Ray Hurst wrote:

> It was my understanding that if I write a C program and compiled it with
> gcc that gcc used newlib for all of the stdlib functions including
> malloc, realloc and free.

Gcc doesn't have any choice in the matter.  All it knows is that there's
a C library on the system, that's it.  It doesn't know nor care where or
how the C library is implemented.

In the case of Cygwin, the C library is provided by Cygwin, in the form
of cygwin1.dll.  Cygwin relies on newlib to implement some things, but
malloc is not one of them.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

