X-Spam-Check-By: sourceware.org Message-ID: <074c01c6bb67$69f94fd0$26e0110a@FRED4> From: "fred" To: References: <019701c6bb49$c9b225a0$26e0110a AT FRED4> <44D94430 DOT 2030107 AT sbcglobal DOT net> <073401c6bb60$b7235b40$26e0110a AT FRED4> <44D9537B DOT B35B61F0 AT dessent DOT net> Subject: Re: Fw: GCC - 64bit long long type, support in lib Date: Wed, 9 Aug 2006 13:53:45 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Ok,Thanks for clearing me up. I had not thought printf,etc, was low enough level to require emulation...... yah for open source!! guess i'll just have to look at the cygwin source stuff..... hope it does have 64bit int tho...but I don't care about 64 bit PE/COFF.. I am thinking like a 8bit micro can have support for 32bit integers because the compiler generates the code support for it,ie 4x8bits, so should gcc, it does on linux, 64bit ints on 32bit linux...... Thanks ----- Original Message ----- From: "Brian Dessent" To: Sent: Wednesday, August 09, 2006 1:16 PM Subject: Re: Fw: GCC - 64bit long long type, support in lib > 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/ > -- 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/