IPTR-C2H-NIOS Altera, IPTR-C2H-NIOS Datasheet - Page 73

no-image

IPTR-C2H-NIOS

Manufacturer Part Number
IPTR-C2H-NIOS
Description
IP CORE Renewal Of IPT-C2H-NIOS
Manufacturer
Altera
Datasheet

Specifications of IPTR-C2H-NIOS

Software Application
IP CORE, NIOS Processor And Functions
Core Architecture
Nios II
Features
ANSI C Compliance, Straightforward C-to-Hardware Mapping, Reporting Of Generated Results
Core Sub-architecture
Cyclone
Rohs Compliant
NA
Lead Free Status / RoHS Status
na
Example 3–27. Pointer Aliasing
void foo(int *ptr_a, int *ptr_b)
{
}
Altera Corporation
November 2009
int a, b;
a
*ptr_a = a + 7;
b
*ptr_b = b + 8;
= *ptr_a;
= *ptr_b;
operations that come before it. Because arrays and structures are
equivalent to pointer operations, the same considerations apply when
indexing into an array or structures.
This section describes the implications of aliasing on the C2H Compiler
and outlines methods to prevent unnecessary dependencies.
Figure 3–14
Figure 3–14. Pointer-Related Data Dependency
In this example, the C2H Compiler cannot determine whether or not
ptr_a and ptr_b ever point to the same address. Therefore, it schedules
conservatively, under the assumption that they do. The dependency
graph shows that the read operation from ptr_b depends on the write
operation to ptr_a. This is not a dependency on the variable ptr_a, but
rather a dependency on a location in memory that is unknown at
shows the dependency graph for
9.1
C-to-Hardware Mapping Reference
Nios II C2H Compiler User Guide
Example
3–27.
3–33

Related parts for IPTR-C2H-NIOS