This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
memory allocation
- To: help-gcc at gnu dot org
- Subject: memory allocation
- From: Anand Ganesh <anandg at cs dot utexas dot edu>
- Date: Thu, 4 Nov 1999 04:15:20 -0600
- Newsgroups: gnu.gcc.help
- Organization: CS Dept, University of Texas at Austin
- Xref: wodc7nx0 gnu.gcc.help:1682
Hi,
Why doesnt gcc crib when I make an array declaration that it cant
handle ?
eg
float array[10000][5][5];
That there is a problem I realised b'cos some unrelated variables were
getting changed. The reason I declared such an array instead of mallocing
is that it is easier to pass 3D arrays rather than float*** which you cant
use as a 3D array anymore (since dimensions are not known).
Is there a way to get a warning from gcc ? (I did gcc -Wall)
Thanks in advance for any help,
ag.