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

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
Altera Corporation
November 2009
Array Initialization (Section 6.7.8, Paragraph 3)
Array initialization is supported; however, the array size must be
established before initializing individual elements of the array.
The following code, which assigns a single element of an array without
establishing its size, is not supported:
The following initialization, which establishes the array size before
initializing a single element, is supported:
It is also possible to initialize the entire array with a single statement, as
follows:
Delayed Declaration
The C2H Compiler does not support delayed declaration of variables.
For example, the following code, which first declares an array of
unspecified size and later provides the size, is not supported:
You can establish the size of the array when it is declared:
Expressions
The C2H Compiler does not support the following C operators.
Unary Operator (Address Operator) (Section 6.5.3.2, Paragraph 1)
The unary & operator used as an address operator is not supported.
int a[] = {[5]=2};
int a[6]; /* establish array size */
a[5]=2; /* assign element 5 */
int a[6]={0,0,0,0,0,2}; /* init a[]*/
int b[]={0,0,0,0,0,2}; /* init b[]*/
int a[];
int a[20];
int a[20];
9.1
ANSI C Compliance and Restrictions
Nios II C2H Compiler User Guide
7–3

Related parts for IPTR-C2H-NIOS