This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Balloc freelist pre-allocation
- From: "Aaron J. Grier" <aaron at frye dot com>
- To: Newlib Mailing List <newlib at sources dot redhat dot com>
- Date: Fri, 25 Jul 2003 10:40:50 -0700
- Subject: Balloc freelist pre-allocation
I'm trying to run down some fragmentation issues on my RTEMS system, and
it appears that some of the culprit is in mprec.c: Bfree only adds to a
freelist and doesn't actually call free(), which gives me fragmentation
troubles.
in the worst case scenario I could do fixed-point arithmetic at the top
level and printf("%d.%d",...) but being able to use "%5.1f" makes the
code much easier to read and maintain.
what's the most straight-forward way to pre-allocate memory for the
freelist?
--
Aaron J. Grier | Frye Electronics, Tigard, OR | aaron@frye.com