- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 GeorgeLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did ramsripathi's answer solve your problem/question?
If not, post a reply and we'll look into it further.![](/skins/images/D15CB063516FF7FAD84DBF1A4998EFF1/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page