From: Stephen Leake <Stephen.Leake@gsfc.nasa.gov>
Subject: dynamic memory allocation
Date: 1997/06/16
Date: 1997-06-16T00:00:00+00:00 [thread overview]
Message-ID: <33A55F1B.63FE@gsfc.nasa.gov> (raw)
I'm trying to convince my project that dynamic memory allocation is a
bad idea in an embedded software system (a satellite control system, in
this case).
They are proposing a message passing scheme where sending tasks allocate
buffers for each message from a heap, and receiving tasks deallocate. I
have suggested that the heap could become fragmented (the buffers are
NOT all the same size). They say "we'll just test it thoroughly".
Can anyone provide a reference to a book or study article that says this
is bad? To me it seems obvious, and the general tone in this newsgroup
is that it's obvious. I have a couple books on realtime embedded design,
and they don't even bother to mention dynamic allocation -
unfortunately, that makes it hard to say "see, this book says it's bad".
On the other side, are there any discussions of how to test such a
system, to show that it does not become fragmented? Or a book on
designing dynamic memory allocation algorithms to avoid fragmentation?
Thanks for any help,
--
- Stephe
next reply other threads:[~1997-06-16 0:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-16 0:00 Stephen Leake [this message]
1997-06-16 0:00 ` dynamic memory allocation Samuel Mize
1997-06-16 0:00 ` Joel Seidman
1997-06-17 0:00 ` Robert Dewar
1997-06-17 0:00 ` Spam Hater
1997-06-17 0:00 ` Robert Dewar
1997-06-17 0:00 ` Stephen Leake
1997-06-17 0:00 ` Michael F Brenner
1997-06-17 0:00 ` Brian Rogoff
1997-06-17 0:00 ` Glen Cornell
1997-06-17 0:00 ` Jon S Anthony
1997-06-18 0:00 ` Mats.Weber
1997-06-18 0:00 ` Jon S Anthony
1997-06-18 0:00 ` David Wheeler
1997-06-18 0:00 ` Stephen Leake
1997-06-19 0:00 ` Arthur Schwarz
1997-06-20 0:00 ` David Wheeler
1997-06-19 0:00 ` JP Thornley
1997-06-18 0:00 ` David Wheeler
-- strict thread matches above, loose matches on Subject: below --
1997-06-19 0:00 Marin David Condic, 561.796.8997, M/S 731-93
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox