Skip to Main Content
Energy-Aware Memory Management for Embedded Multimedia Systems
book

Energy-Aware Memory Management for Embedded Multimedia Systems

by Florin Balasa, Dhiraj K. Pradhan
November 2011
Intermediate to advanced content levelIntermediate to advanced
359 pages
11h 16m
English
Chapman and Hall/CRC
Content preview from Energy-Aware Memory Management for Embedded Multimedia Systems
142 Energy-Aware Memory Management for EMSs
void m0(int m) {
for(c=1;c<= m;c++) {
m1(c);
B[] m2Arr=m2(2*m-c);
}
}
B[] m2(int n) {
B[] arrB = new B[n];
for(j=1;j<= n;j++) {
B b=new B();
C c=new c();
arrB[j-1]=b;
}
return arrB;
}
void m1(int k) {
for(i=1;i<=k;i++) {
A a = new A();
B[] captArr=m2(i);
}
}
Figure 4.10 Dynamic memory allocation example.
a caller of m. The amount of memory required to run a method m (denoted
memRq
m
) is composed by both cap
m
and ret
m
. This is because in order to run
m the system will require enough memory to allocate the objects that will be
created by m and collected when it finishes (cap
m
) and the objects allocated by
m that live longer (ret
m
). Nevertheless, we will see later that objects returned
by methods tend to be captured by other methods ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Nanoelectronic Device Applications Handbook

Nanoelectronic Device Applications Handbook

James E. Morris, Krzysztof Iniewski
Networks on Chips

Networks on Chips

Giovanni De Micheli, Luca Benini, Davide Bertozzi, Israel Cidon, Kees Goossens, Kwanho Kim, Kangmin Lee, Se-Joong Lee, Srinivasan Murali, Hoi-Jun Yoo
UPC: DISTRIBUTED SHARED MEMORY PROGRAMMING

UPC: DISTRIBUTED SHARED MEMORY PROGRAMMING

Tarek El-Ghazawi, William Carlson, Thomas Sterling, Katherine Yelick
Strain-Engineered MOSFETs

Strain-Engineered MOSFETs

C.K. Maiti, T.K. Maiti

Publisher Resources

ISBN: 9781439814017