delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <44D9537B.B35B61F0@dessent.net> |
Date: | Tue, 08 Aug 2006 20:16:11 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
X-Mailer: | Mozilla 4.79 [en] (Windows NT 5.0; U) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Fw: GCC - 64bit long long type, support in lib |
References: | <019701c6bb49$c9b225a0$26e0110a AT FRED4> <44D94430 DOT 2030107 AT sbcglobal DOT net> <073401c6bb60$b7235b40$26e0110a AT FRED4> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
fred wrote: > sorry if I confused readers. > > the source gcc downloaded I have is gcc-3.4.4 > it seems the library is part of the gcc with cygwin. > and the library I'm referring to is in the libiberty sub-directory. > a config.h file does get generated (configured) in that directory. > > The "newlib" you are referring to, I don't see anything referred to as > "newlib" in the cygwin setup??? You're quite confused. libiberty is a support library used internally by gcc itself (and other tools like binutils.) It has absolutely nothing to do with what happens when you compile something containing a printf(). Gcc is just the compiler, it does not include the C library. On the Cygwin platform the C library is provided entirely by cygwin1.dll. Internally this is partly based on newlib for implmentation of some of the standard C I/O routines. If you want to see how printf() is implemented you need to look at the Cygwin source, not the gcc source. IIRC newlib does have limited support for long long in I/O routines like printf and scanf, but it's not full support. And I don't know if this applies to native 32 bit targets, or if it's only for 64 bit targets (neither gcc nor binutils have been ported to 64 bit PE/COFF yet AFAIK.) 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |