Article ID: 000078998 Content Type: Troubleshooting Last Reviewed: 02/24/2014

Incorrect information about Embedded C

Environment

    Quartus® II Subscription Edition
    Nios® II Embedded Design Suite (EDS)
    Nios® II Processor
    Nios® II (Classic) Processor
BUILT IN - ARTICLE INTRO SECOND COMPONENT

Critical Issue

Description

The Embedded Design Handbook contains the following incorrect statement about C support:

    The HAL supports only the standard Embedded C subset of the full C language. C programs that use features beyond this subset fail in the HAL environment. C features not available in Embedded C include polymorphism, templates, and single and multiple object inheritance. In general, features that consume a large amount of memory are not included in Embedded C . Catch/throw exceptions fail in the MicroC/OS-II environment.

Nios II C support is not restricted to the obsolete Embedded C specification.

Resolution

In place of the incorrect paragraph, refer to the following correct information:

Nios II C language support depends on the GCC tool chain. The Nios II GCC 4 C tool chain supports the following features:

  • Polymorphism
  • Friendship and inheritance
  • Multiple inheritance
  • Virtual base classes
  • Run-time type information (typeid)
  • The mutable type qualifier
  • Namespaces
  • Templates
  • New-and-delete style dynamic memory allocation
  • Operator overloading
  • Standard Template Library (STL)

Exceptions and new-style dynamic casts are not supported.

Related Products

This article applies to 1 products

Intel® Programmable Devices

1