This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: xlimits.h for embedded targets
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: xlimits.h for embedded targets
- From: Joel Sherrill <joel at OARcorp dot com>
- Date: Thu, 9 Oct 1997 16:38:24 -0500 (CDT)
- cc: egcs at cygnus dot com
On Thu, 9 Oct 1997, Richard Henderson wrote:
> On Thu, Oct 09, 1997 at 07:49:27AM -0500, Joel Sherrill wrote:
> > The RTEMS limits.h file is technically dependent on the OS version. In
> > practice, it doesn't change very often but it includes some limits from
> > the threads and real-time extensions
>
> FWIW, in glibc we handle this by having several smaller private
> header files that are all included by the "main" limits.h. And
> the same with quite a number of other headers as well.
The main problem for embedded targets is that there are headers files
installed until after gcc is built because you need gcc to build the C
library before you build the embedded OS itself. Chicken and egg problem
as much as anything else.
The current "#include_next" in gcc works fine with RTEMS if you force it
to regenerate the limits.h after the C library is installed. :)
--joel