Forum Discussion
Altera_Forum
Honored Contributor
9 years agoOk, thank you for your effords.
I tried the c++11 and 98 flags, which let me compile. I had a look at this: https://gcc.gnu.org/onlinedocs/gcc-2.95.2/gcc_2.html , because I use the GCC. I used -fno-rtti, but i haven't found a command for disabling exception. In the document was a command to enable them. Could it be, that they are default disabled? Still, I have rewritten a small part of my C code. Int main() creates instances of a SPI class which has a send_commands member and a CAN class which has a member which calls a static function from the SPI class and I already get memory overflow. I guess I either missunderstand basic c++ behaviour or c++ is just not suitable for my uses. Static methods are in the memory all the time, or am i mistaken? Is there any documentation how to use c++ with a NIOSII CPU, I just found the supported features of c++ for NIOSII CPUs. edit: I just saw that my BSP Settings were back to default. After enabling reduced device drivers and enabling the lightweigth device driver api, the code size was reduced by 8kBytes. It is still a bit much, but I think I can continue with these results.