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

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
Language
7–4
Nios II C2H Compiler User Guide
The following example, which passes the address of a as the argument to
the function analyze(), is not supported:
You can substitute the following code, which initializes the pointer
outside of the accelerator:
Logical Expressions
All expressions in logical operations are evaluated. The parser does not
stop evaluation if the first expression of a compound statement is true.
For example, in the following statement, both i and j decrement, even if
i is nonzero:
In the following code fragment, the C2H Compiler evaluates the divide
by 0, which causes an error:
Functions
The following sections list restrictions on functions.
Function Arguments
This section lists restrictions on arguments to functions.
Composite Types (Section 6.2.7)
The C2H Compiler does not support function arguments of different but
compatible types in function declarations that refer to the same entity.
void foo()
{
}
int analyze( int * p );
int *pa = &a;
int foo()
{
}
int analyze( int * p );
if (i-- || j--)
int i = 2 || 1 / 0 ;
int a=0;
int c=analyze(&a);
return analyze(pa);
9.1
Altera Corporation
November 2009

Related parts for IPT-C2H-NIOS