Hi
I want to have a big matrix in internal nonvolatile memory. boolean v[240][128].
How can I make the access very simple?
Also I want a big float vector of 1000 length.
Is there any way to use them as v[][] and f[] and specify the memory from the beginning ?:-?:D
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
Posted: Fri Jun 03, 2011 2:10 am
You don't say what chip?.
For the float, provided you are talking a modern chip, with enough memory, the compiler should be quite happy to have a const array this size.
For Boolean, there is a problem. The compiler _does not support_ arrays of boolean values (in the manual). You'd probably have to generate your own macro to take the two address values, and do the accesses into an int array, and then the required bit in this.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum