This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: GCC viciously beaten by ICC in trig test!


Gabriel Dos Reis wrote:
This is a tricky issue. Some standards (e.g. POSIX) make conflicting
requirements to that of ISO C standard, and as a matter of fact
demand that the C standard headers be modified.  If GCC/gcc had to
come with its own C headers, then it would have to implement those
standards too -- in order to comply with user expectations.
That is a mess and GCC has better not drive into that.

Perhaps GCC could provide a clean ISO C library that is enabled with the -std=c99 switch? After all, GCC does include an ISO C++ library, and a Fortran 95 library (in tree-ssa).


The compiler could link against the system C library, except when the user explicitly declares that they wish to use the GCC-supplied library.

I've also noticed a couple of alternative libraries for embedded systems (uClib and newlib). I may experiment with these...

--
Scott Robert Ladd
Coyote Gulch Productions (http://www.coyotegulch.com)
Software Invention for High-Performance Computing


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