Parially freeing the memory in the c++

Status
Not open for further replies.

syedshan

Advanced Member level 1
Joined
Feb 27, 2012
Messages
463
Helped
27
Reputation
54
Reaction score
26
Trophy points
1,308
Location
Jeonju, South Korea
Visit site
Activity points
5,134
Dear all,

In my program I am communicating with FPGA and for proper communication I am stuck to allocating very large memory during calling data from FPGA to computer through PCIe.

One way I thought is to partially free the initial bytes of data. For example If I allocate 50 M-Byte or even slightly more, of memory (which is LOOOOOTTTT), hence I plan to free 4096 Bytes each time that data is fetched and stored in file. This way at least some of the memory is free for other programs to run...

I check on internet and it seems that it is not possible the easy way... see here

But Is there any method to do so...


Bests,
Shan
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…