This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]