[comp.unix.cray] static arrays in C

simonm@mel.dit.csiro.au (Simon McClenahan) (04/11/91)

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@mel.dit.csiro.au              |
|                     Waste not what I want...                           |