Hello,
I want to have a large array. I have a structure which contains 6 fields, 4 of them are unsigned char and 2 of them are unsigned short. I should have an array of 80 elements of type the above said structure. I would like to have it as a static array in a class, which I can refer to, from any function inside this class. I am programming this for an advanced audio amplifier (Embedded system), running on PowerPC and OSEK RTOS. compiler is diab. When I declared the array with 60 elements, it worked fine, but when I increased it to 80 elements, the target system is not booting because of insuffiecient RAM. Is there any way in C++ so that I can make it work? (I have declared the array as const, otherwise the code wont compile)
Thanks,
Regards,
Ramu
I want to have a large array. I have a structure which contains 6 fields, 4 of them are unsigned char and 2 of them are unsigned short. I should have an array of 80 elements of type the above said structure. I would like to have it as a static array in a class, which I can refer to, from any function inside this class. I am programming this for an advanced audio amplifier (Embedded system), running on PowerPC and OSEK RTOS. compiler is diab. When I declared the array with 60 elements, it worked fine, but when I increased it to 80 elements, the target system is not booting because of insuffiecient RAM. Is there any way in C++ so that I can make it work? (I have declared the array as const, otherwise the code wont compile)
Thanks,
Regards,
Ramu
Comment