Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

malloc and free

Altera_Forum
Honored Contributor II
2,150 Views

Hi: 

 

I'm starting a new project using NIOS II. This project requires a doubly linked list to manage some of the data in the system. It looks like a good design for the linked list is to use malloc() and free().  

 

My question does anyone have an idea as to how much overhead is associated with calls to malloc and free?? 

Also how much memory fragmentation can I expect and has that been a problem?? 

 

Thanks 

George
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
981 Views

The version of malloc and free that is shipped with the libc archive is very good at avoiding fragmenetation ,in other words it has a very good coelescing algorithm

0 Kudos
Altera_Forum
Honored Contributor II
981 Views

Did ramsripathi's answer solve your problem/question? 

 

If not, post a reply and we'll look into it further.
0 Kudos
Reply