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

no-image

IPT-C2H-NIOS

Manufacturer Part Number
IPT-C2H-NIOS
Description
C2H COMPILER FOR NIOS II
Manufacturer
Altera
Series
Nios®IIr
Type
Nios IIr
Datasheet

Specifications of IPT-C2H-NIOS

Function
C to Hardware Compiler
License
Initial License
Software Application
IP CORE, NIOS Processor And Functions
Core Architecture
FPGA
Core Sub-architecture
Cyclone
Rohs Compliant
NA
Lead Free Status / RoHS Status
Not applicable / Not applicable
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 IPT-C2H-NIOS