Re: size of array "" is too large

2008-07-17 Thread Nicholas Sherlock
Hariharan wrote: [...] in a 16-bit target (picochip), you cannot define, struct trial { long a[1]; }; In the case above, i get a "size of array ‘a’ is too large" error. The thing that took me by surprise was, if i split the structure to struct trial { long a[5000]; long b[5000]; };

size of array "" is too large

2008-07-17 Thread Hariharan
Hello, I see that in x86 GCC, you can define a structure with struct trial { long a[10]; }; Whereas in a 16-bit target (picochip), you cannot define, struct trial { long a[1]; }; In the case above, i get a "size of array ‘a’ is too large" error. The thing that took me by surp