This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: RTEMS patch sweep: *types.h
- From: Paul Schlie <schlie at comcast dot net>
- To: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- Cc: Newlib List <newlib at sources dot redhat dot com>
- Date: Tue, 22 Feb 2005 05:50:41 -0500
- Subject: Re: RTEMS patch sweep: *types.h
> From: Ralf Corsepius <ralf.corsepius@rtems.org>
> Do you mean intptr_t and uintptr_t?
- yup.
> The original motivation behind these patches (and further patches to
> come) was implementing a portable stdint.h and inttypes.h (Scheduled to
> come soon, should these patches be accepted)
>
> It gradually had evolved into a partial cleanup of fixed-size in RTEMS
> and newlib with regard to SUSv3 and BSD :-)
Nice, unfortunately using them ideally is the harder part...
(don't know where it would belong, but do honestly believe, particularly
for small targets with sparse data memory resources, there needs to be
some way easy way for the programmer to determine that data structures
need to ideally be declared as frugally as possible, while not needlessly
compromising more ideal sizing for larger targets; something basically
along the lines of where a target may designate themselves as having
either a small <16KB, medium ~128KB, or large >1MB total data memory;
thereby a target size aware function implementation may then at least
attempt to size their allocations proportionally to available resources;
but again it just provides the opportunity to do so, utilizing the
information effectively is the harder part.)