This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can I tell which version of newlib I have?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]