Balloc freelist pre-allocation

Aaron J. Grier aaron@frye.com
Tue Jul 29 10:28:00 GMT 2003


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



More information about the Newlib mailing list