| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| From: | Ray Hurst <rhurst2 AT cox DOT net> |
| Subject: | Re: Can I tell which version of newlib I have? |
| Date: | Tue, 24 Apr 2007 16:19:25 -0700 |
| Lines: | 27 |
| Message-ID: | <f0m39k$abd$1@sea.gmane.org> |
| References: | <f0lqsf$pp1$1 AT sea DOT gmane DOT org> <462E734D DOT F08DE9A AT dessent DOT net> <462E7390 DOT 3DC65869 AT dessent DOT net> <f0lvro$mi1$2 AT sea DOT gmane DOT org> <462E8715 DOT DFA7F457 AT dessent DOT net> |
| Mime-Version: | 1.0 |
| User-Agent: | Thunderbird 1.5.0.10 (Windows/20070221) |
| In-Reply-To: | <462E8715.DFA7F457@dessent.net> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
Brian Dessent wrote: > 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 > Brian, Technically you are correct. gcc does not care. However, gcc is typically used to invoke the linker which does care where the C library is. Most command lines that use gcc to compile and link do not specify where the C library is as gcc or the linker knows where it is. What I am asking is how do these programs find the C library on a cygwin system running on windows? Specifically. I am looking for the library that contains the malloc function but I would like the general info also. Ray -- 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |