Pointer aliasing, Pointer aliasing –32, Figure 3–12 – Altera Nios II C2H Compiler User Manual

Page 72

Advertising
background image

3–32

9.1

Altera Corporation

Nios II C2H Compiler User Guide

November 2009

Scheduling

Figure 3–12. Dependency Graph

The C2H Compiler uses the dependency graph to assign each assignment
to a state in the state machine.

Figure 3–13

shows how the C2H Compiler

assigns each assignment to a state.

Figure 3–13. Scheduling Assignments in a Dependency Graph

Pointer Aliasing

Aliasing is a situation where it is possible for a change to one variable or
reference to affect another. In the C language, aliasing can occur due to the
indirection introduced by pointers. If the address ranges referenced by
two pointers overlap, the pointers alias. Pointer aliasing is another form
of data dependency that the C2H Compiler must consider. Any read or
write operation with a pointer is dependent on all pointer write-

Advertising