Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12436 Discussions

fragmentation of memory in uClinux

Altera_Forum
Honored Contributor II
817 Views

How do we allocate more or move free memory when compiling for uClinux?  

 

My real issue is dealing with memory fragmentation. I was trying to figure out the placement of the heap table in the memory map so that I get away from malloc, I can set aside a block of memory that I know no process will use it. I can then have my own memory block that localized to certain process. That way I don’t run into fragmentation of uClinux. I can see how to change the stack size, but this documentation does not cover how to move the heap. 

 

BTW, I tried to use array (just for quick test and localize memory allocation) and it failed right off at busy box run time. There also limits of how large of an array I can allocate (I was trying to allocate 132M bytes).  

 

Any, thoughts?
0 Kudos
0 Replies
Reply