参数资料
型号: IPT-C2H-NIOS
厂商: Altera
文件页数: 68/138页
文件大小: 0K
描述: C2H COMPILER FOR NIOS II
标准包装: 1
系列: Nios®II
类型: Nios II
功能: C 到硬件编译器
许可证: 初始许可证
Memory Accesses
Structure and Union Operators
The structure and union constructs in the C language provide an
abstraction for creating objects that consist of multiple types. The .
(member) and -> (structure pointer) operators abstract accesses to
structures and unions. These operators can be converted to an equivalent
address expression and indirection operation.
The C2H Compiler keeps storage for global structure and union variables
in the Nios II processor ’s data memory. For global structures and unions,
the C2H Compiler converts structure and union operations to equivalent
pointer dereferences, and then translates the pointer dereference to
hardware. The pointer dereference creates an Avalon-MM master port on
the hardware accelerator, as described in section “Indirection Operator
(Pointer Dereference)” on page 3–16 .
For storage of local structure and union variables, the C2H Compiler uses
on-chip memory resources inside the accelerator. For these local
variables, the C2H Compiler generates master ports internal to the
accelerator, which connect only to the internal memory. Refer to section
“Arrays, Structures, and Unions” on page 3–14 .
Member Operator .
The member operator ( . ) accesses a single member of a structure or
union.
The struct member operation (mystruct.a) is equivalent to
Example 3–20 .
Example 3–20. Converted struct Member Operation
*((pointer_to_type_of_a) ((void *)&mystruct + offset_of_a))
Similarly, the union member operation (myunion.a) is equivalent to
Example 3–21 .
Example 3–21. Converted union Member Operation
*((pointer_to_type_of_a)(&myunion))
3–28
Nios II C2H Compiler User Guide
9.1
Altera Corporation
November 2009
相关PDF资料
PDF描述
IPTR-DSPBUILDER DSP BUILDER SOFTWARE
IR11662SPBF IC CNTROL SMART RECTIFIER 8-SOIC
IR1166STRPBF IC MOSFET DRIVER N-CH 200V 8SOIC
IR11672ASPBF IC MOSFET DRIVER 200V 8-SOIC
IR1167ASTRPBF IC SMART SECONDARY DRIVER 8-SOIC
相关代理商/技术参数
参数描述
IPT-DSPBUILDER 功能描述:开发软件 DSP Builder MATLAB SIMULINK RoHS:否 制造商:Atollic Inc. 产品:Compilers/Debuggers 用于:ARM7, ARM9, Cortex-A, Cortex-M, Cortex-R Processors
IPTE-75GF-1000-70D 制造商: 功能描述: 制造商:undefined 功能描述:
IPTG06A18-11SZC 制造商:GLENAIR 制造商全称:Glenair, Inc. 功能描述:Straight Plug Connector with Backshell to Accommodate
IPTG06A18-11SZCPH16 制造商:GLENAIR 制造商全称:Glenair, Inc. 功能描述:Straight Plug Connector
IPTG06A18-11SZCPHM18 制造商:GLENAIR 制造商全称:Glenair, Inc. 功能描述:Straight Plug Connector