Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

C,C++ support in NIOS

Hi,

Will NIOS processor support all C & C++ instructions?

I have six C++ programs & a Verilog custom program. Each C++ program takes input from files generated by other C++ programs. Finally the data goes to FPGA(custom program)& gets the output.

Is there any restriction on data accessing from files. Each data is a floating number or an integer.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by mohana sundaram.s.v@Sep 1 2005, 07:58 AM

    hi,

    will nios processor support all c & c++ instructions?

    i have six c++ programs & a verilog custom program. each c++ program takes input from files generated by other c++ programs. finally the data goes to fpga(custom program)& gets the output.

    is there any restriction on data accessing from files. each data is a floating number or an integer.

    --- Quote End ---

    NIOS uses the standard gcc compiler with the newlib library

    If all the functions you use are available in the newlib library , then i see no reason why it should not work.

    Check the newlib lib documentaion in your nios install for a list of funcs

    regards

    Pavan
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I noticed the IDE doesn't indicate "class" to be a reserved word in a .c or .h file; I had assumed the compiler didn't support C++.

    The IDE does indicate "class" as a reserved word in a .cpp file. Is there a ".h-like" extension for which the IDE recognises "class" (.hpp?) ??
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    > Is there a ".h-like" extension for which the IDE recognises "class" (.hpp?) ??

    Right click your project and select properties, then have a look at the "C/C++ File Types".

    Regards,

    --Scott