static arrays in C
Simon McClenahan
simonm at mel.dit.csiro.au
Thu Apr 11 15:16:34 AEST 1991
I have a program that uses 2 very large arrays (approximately 10,000,000
integers each!). They were declared as static int in the head of the
program (not in main(), outside that). When I try to compile it, segldr (I
think) won't generate the executable becauseit requires too much memory.
I removed the static keyword, and it now compiles fine! Does this mean I
have some sort of virtual array? Will my program work?
--
|Simon McClenahan CSIRO, | Cray Supercomputing Support Group |
|55 Barry St, Carlton, | (TEL) +61 3 347 8644 (FAX) +61 3 347 8987 |
|VIC 3053, Australia | Internet:simonm at mel.dit.csiro.au |
| Waste not what I want... |
More information about the Comp.unix.cray
mailing list