xlimits.h for embedded targets

Joel Sherrill joel@OARcorp.com
Thu Oct 9 14:56:00 GMT 1997


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




More information about the Gcc mailing list