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: Fw: GCC - 64bit long long type, support in lib


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" <brian@dessent.net>
To: <cygwin@cygwin.com>
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/


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