On Thu, Jul 26, 2007 at 02:40:49PM +0800, dengdd wrote: > hi ,list > I am just starting to learn to develop with eCos. > i am working on hp ipaq 3630. > Now, my application can run . > > I want to know how much memorys free on eCos when my application > running. But i don't know how to do it. > or know how much memorys my application used ?
mallinfo will tell you about the heap. If you are using eCos variable of fixed size memory blocks, you can call cyg_mempool_var_get_info() or cyg_mempool_fix_get_info(). Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
