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

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–22. Structure Declaration
struct s
{
} my_struct;
Example 3–23. Converted struct Pointer Operation
*((pointer_to_type_of_a) ((void *)mystruct + offset_of_a))
Example 3–24. Converted union Pointer Operation
*((pointer_to_type_of_a)myunion)
Altera Corporation
November 2009
int element_a;
int element_b;
int element_c;
Consider the simple struct declaration shown in
In this example, the expression (my_struct.c) translates to the
following:
Structure Pointer Operator ->
The structure pointer operator is used to access a single member of a
structure or union via a pointer to the structure or union. The structure
pointer operator behaves similarly to the member operator, except that
the left-hand side of the operator must be a pointer.
The structure pointer operation on a struct(e.g. mystruct->a) is
equivalent to
The structure pointer operation on a union (e.g. myunion->a) is
equivalent to
*((int *)((void *)&my_struct + 2*sizeof(int)))
Example
Example
9.1
3–23.
3–24.
C-to-Hardware Mapping Reference
Nios II C2H Compiler User Guide
Example
3–22.
3–29

Related parts for IPTR-C2H-NIOS