参数资料
型号: IPT-C2H-NIOS
厂商: Altera
文件页数: 129/138页
文件大小: 0K
描述: C2H COMPILER FOR NIOS II
标准包装: 1
系列: Nios®II
类型: Nios II
功能: C 到硬件编译器
许可证: 初始许可证
ANSI C Compliance and Restrictions
For example, the following code shows two definitions of my_func()
with compatible arguments, which is not supported:
int my_func(int (*)(), double (*)[3]);
int my_func(int (*)(char *), double (*)[]);
These two declarations can be combined into a single composite function
prototype that is compatible with the previous declarations:
int my_func(int (*)(char *), double (*)[3]);
Ellipsis (Section 6.7.5.3, Paragraph 9)
The ellipsis function argument is not supported.
The following function includes an incompletely specified parameter list,
which is not supported:
void foo(int a, short b,...);
The previous example can be replaced with a function declaration that
completely specifies the parameter list:
void foo(int a, short b, char *a);
Struct and Union (Section 6.7.2.1, Paragraph 1)
The C2H Compiler does not support passing struct or union arguments
to a function by value. There are two ways to include structs or union
types in the C source:
Pass a pointer to a struct or union as an argument to the function.
Define the struct or union globally outside the accelerated function.
The following code, which passes a struct MyStruct as an argument, is
not supported:
void doDMA(struct s MyStruct);
The previous example can be replaced with code that defines the struct s
outside of the function call:
struct s MyStruct;
void doDMA();
Function Pointers (Section 6.7.5.3, Paragraph 8)
Function pointers are supported if used to point to functions that exist
inside the hardware accelerator. The C2H Compiler does not support
function pointers used as input or output arguments to an accelerator.
Altera Corporation
November 2009
9.1
7–5
Nios II C2H Compiler User Guide
相关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