public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] jffs2 memory allocation
@ 2003-11-03 14:38 Thomas Koeller
  2003-11-03 22:38 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Koeller @ 2003-11-03 14:38 UTC (permalink / raw)
  To: ecos-discuss

As has been stated earlier (see http://ecos.sourceware.org/ml/ecos-discuss/2003-10/msg00247.html),
the memory allocation routines used by the ecos port of jffs2 could be improved by using a fixed-
size block allocator instead of the current malloc()-based scheme. This could be achieved in two
different ways: A new set of allocator routines could be added to the jffs2 package, to either
replace or complement the existing functions. Or one could simply add a 'weak' attribute to the
existing functions, so the application could redefine them.

The first approach yields something that is easy to use, but there can only be limited control of
the allocation process (by means of configuration parameters). The second approach requires more
work to be done by the user, but also gives better control, which may be beneficial. For example,
I might want to use a separate heap for this purpose.

I feel a bit uncertain about which way to go, so I'd welcome any comments.

tk

--------------------------------------------------

Thomas Koeller, Software Development

Basler Vision Technologies
An der Strusbek 60-62
22926 Ahrensburg
Germany

Tel +49 (4102) 463-162
Fax +49 (4102) 463-239

mailto:thomas.koeller@baslerweb.com
http://www.baslerweb.com

==============================


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-03 22:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-03 14:38 [ECOS] jffs2 memory allocation Thomas Koeller
2003-11-03 22:38 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).