<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Angelo Fraietta wrote:
<blockquote cite="mid:4754687D.7010304@smartcontroller.com.au"
type="cite">
<pre wrap="">
Robert S. Grimes wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Might I ask what you based your allocator on? Did you use a chunk of
memory from the heap, and manage that yourself? Or did you use RTEMS
Regions or Partitions? I'm particularly interested in the "quality" of
those subsystems.
</pre>
</blockquote>
<pre wrap=""><!---->
I created a linked list for each class and allocated will malloc when i
needed it - the size of the required memory is passed in operator new of
the class. Instead of freeing the memory when I released in my app via
'delete' , I put it aside and cached for use in the next allocation via
'new'
</pre>
</blockquote>
Thanks for the reply. So you just used malloc to get the memory, and
kept it for yourself. Sounds clean and simple, and I would guess if a
single task was using it, a great approach.<br>
<br>
Take care,<br>
-Bob<br>
<blockquote cite="mid:4754687D.7010304@smartcontroller.com.au"
type="cite">
<pre wrap="">--
Dr Angelo Fraietta
A.Eng, A.Mus.A, BA(Hons), Ph.D.
PO Box 859
Hamilton NSW 2303
Home Page
<a class="moz-txt-link-freetext" href="http://www.smartcontroller.com.au/">http://www.smartcontroller.com.au/</a>
There are those who seek knowledge for the sake of knowledge - that is
CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
Bernard of Clairvaux (1090 - 1153)
</pre>
</blockquote>
<br>
</body>
</html>