29.01.2015 Views

Embedded Software for SoC - Grupo de Mecatrônica EESC/USP

Embedded Software for SoC - Grupo de Mecatrônica EESC/USP

Embedded Software for SoC - Grupo de Mecatrônica EESC/USP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Software</strong> Architectural Trans<strong>for</strong>mations 479<br />

3.5.5. IPC replacement<br />

This trans<strong>for</strong>mation involves replacing the IPC mechanism associated with an<br />

edge in the SAG by another functionally equivalent mechanism. For example,<br />

message passing can be replaced by shared memory with semaphore protection.<br />

This trans<strong>for</strong>mation is illustrated in Figure 34-8.<br />

The energy change due to this trans<strong>for</strong>mation is estimated as:<br />

where and refer to the energy of the first and second IPC mechanisms,<br />

respectively, and is the number of times this IPC is invoked.<br />

3.5.6. System function replacement<br />

System functions initially used in the application program may not be the most<br />

energy-efficient choices un<strong>de</strong>r the specific context in which they are used. In<br />

this case, replacement of these system functions by lower energy alternatives<br />

leads to energy reduction. This trans<strong>for</strong>mation is illustrated in Figure 34-9.<br />

The energy change due to this trans<strong>for</strong>mation is estimated as:<br />

where is the energy of system function sys1 (sys2) and is the<br />

number of times the system function is invoked.<br />

3.5.7. Process embedding as signal handlers<br />

This advanced trans<strong>for</strong>mation embeds a process as a signal handler into<br />

another process. By doing so, the number of processes is reduced by one,<br />

reducing context switch related energy. However, there is an overhead due to<br />

signal handling. This trans<strong>for</strong>mation is illustrated in Figure 34-10.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!